Class EnumConstantElementValue
java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.annotation.ElementValue
proguard.classfile.attribute.annotation.EnumConstantElementValue
- All Implemented Interfaces:
Serializable,Processable
This
ElementValue represents an enumeration constant element value.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionClazz[]An extra field pointing to the Clazz objects referenced in the type name string.An extra field optionally pointing to the referenced enum Field object.intintFields inherited from class proguard.classfile.attribute.annotation.ElementValue
referencedClass, referencedMethod, TAG_ANNOTATION, TAG_ARRAY, TAG_CLASS, TAG_ENUM_CONSTANT, TAG_STRING_CONSTANT, u2elementNameIndexFields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo -
Constructor Summary
ConstructorsConstructorDescriptionCreates an uninitialized EnumConstantElementValue.EnumConstantElementValue(int u2elementNameIndex, int u2typeNameIndex, int u2constantNameIndex) Creates an initialized EnumConstantElementValue. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor) Accepts the given visitor.getConstantName(Clazz clazz) Returns the constant name.chargetTag()Returns the tag of this element value.getTypeName(Clazz clazz) Returns the enumeration type name.voidreferencedClassesAccept(ClassVisitor classVisitor) Applies the given visitor to all referenced classes.voidreferencedFieldAccept(MemberVisitor memberVisitor) Applies the given visitor to the referenced field.Methods inherited from class proguard.classfile.attribute.annotation.ElementValue
getMethodName, referencedMethodAcceptMethods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface proguard.util.Processable
accept
-
Field Details
-
u2typeNameIndex
public int u2typeNameIndex -
u2constantNameIndex
public int u2constantNameIndex -
referencedClasses
An extra field pointing to the Clazz objects referenced in the type name string. This field is typically filled out by the. References to primitive types are ignored.ClassReferenceInitializer -
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
Returns the enumeration type name. -
getConstantName
Returns the constant name. -
referencedClassesAccept
Applies the given visitor to all referenced classes. -
referencedFieldAccept
Applies the given visitor to the referenced field. -
getTag
public char getTag()Description copied from class:ElementValueReturns the tag of this element value.- Specified by:
getTagin classElementValue
-
accept
Description copied from class:ElementValueAccepts the given visitor.- Specified by:
acceptin classElementValue
-