Class EnumConstantElementValue

    • Field Detail

      • 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 Detail

      • EnumConstantElementValue

        public EnumConstantElementValue()
        Creates an uninitialized EnumConstantElementValue.
      • EnumConstantElementValue

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

      • getTypeName

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

        public java.lang.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