Class EnumConstantElementValue

java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.annotation.ElementValue
proguard.classfile.attribute.annotation.EnumConstantElementValue
All Implemented Interfaces:
Serializable, Processable

public class EnumConstantElementValue extends ElementValue
This ElementValue represents an enumeration constant element value.
See Also:
  • Field Details

    • u2typeNameIndex

      public int u2typeNameIndex
    • u2constantNameIndex

      public int u2constantNameIndex
    • referencedClasses

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

      public Field referencedField
      An extra field optionally pointing to the referenced enum Field object. This field is typically filled out by the ClassReferenceInitializer.
  • Constructor Details

    • EnumConstantElementValue

      public EnumConstantElementValue()
      Creates an uninitialized EnumConstantElementValue.
    • EnumConstantElementValue

      public EnumConstantElementValue(int u2elementNameIndex, int u2typeNameIndex, int u2constantNameIndex)
      Creates an initialized EnumConstantElementValue.
  • Method Details

    • getTypeName

      public String getTypeName(Clazz clazz)
      Returns the enumeration type name.
    • getConstantName

      public String getConstantName(Clazz clazz)
      Returns the constant name.
    • referencedClassesAccept

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

      public void referencedFieldAccept(MemberVisitor memberVisitor)
      Applies the given visitor to the referenced field.
    • 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