Class ClassElementValue

All Implemented Interfaces:
Serializable, Processable

public class ClassElementValue extends ElementValue
This ElementValue represents a class element value.
See Also:
  • Field Details

    • u2classInfoIndex

      public int u2classInfoIndex
    • referencedClasses

      public Clazz[] referencedClasses
      An extra field pointing to the Clazz objects referenced in the type name string. This field is filled out by the ClassReferenceInitializer. References to primitive types are ignored.
  • Constructor Details

    • ClassElementValue

      public ClassElementValue()
      Creates an uninitialized ClassElementValue.
    • ClassElementValue

      public ClassElementValue(int u2elementNameIndex, int u2classInfoIndex)
      Creates an initialized ClassElementValue.
  • Method Details

    • getClassName

      public String getClassName(Clazz clazz)
      Returns the class info name.
    • referencedClassesAccept

      public void referencedClassesAccept(ClassVisitor classVisitor)
      Applies the given visitor to all referenced classes.
    • getTag

      public char getTag()
      Description copied from class: ElementValue
      Returns the tag of this element value.
      Specified by:
      getTag in class ElementValue
    • accept

      public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
      Description copied from class: ElementValue
      Accepts the given visitor.
      Specified by:
      accept in class ElementValue