Class ClassElementValue
java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.annotation.ElementValue
proguard.classfile.attribute.annotation.ClassElementValue
- All Implemented Interfaces:
Serializable,Processable
This
ElementValue represents a class element value.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionClazz[]An extra field pointing to the Clazz objects referenced in the type name string.intFields 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 ClassElementValue.ClassElementValue(int u2elementNameIndex, int u2classInfoIndex) Creates an initialized ClassElementValue. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor) Accepts the given visitor.getClassName(Clazz clazz) Returns the class info name.chargetTag()Returns the tag of this element value.voidreferencedClassesAccept(ClassVisitor classVisitor) Applies the given visitor to all referenced classes.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
-
u2classInfoIndex
public int u2classInfoIndex -
referencedClasses
An extra field pointing to the Clazz objects referenced in the type name string. This field is filled out by the. References to primitive types are ignored.ClassReferenceInitializer
-
-
Constructor Details
-
ClassElementValue
public ClassElementValue()Creates an uninitialized ClassElementValue. -
ClassElementValue
public ClassElementValue(int u2elementNameIndex, int u2classInfoIndex) Creates an initialized ClassElementValue.
-
-
Method Details
-
getClassName
Returns the class info name. -
referencedClassesAccept
Applies the given visitor to all referenced classes. -
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
-