Class Annotation
java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.annotation.Annotation
- All Implemented Interfaces:
Serializable,Processable
- Direct Known Subclasses:
TypeAnnotation
Representation of an annotation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionClazz[]An extra field pointing to the Clazz objects referenced in the type string.intintFields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo -
Constructor Summary
ConstructorsConstructorDescriptionCreates an uninitialized Annotation.Annotation(int u2typeIndex, int u2elementValuesCount, ElementValue[] elementValues) Creates an initialized Annotation. -
Method Summary
Modifier and TypeMethodDescriptionvoidelementValueAccept(Clazz clazz, int index, ElementValueVisitor elementValueVisitor) Applies the given visitor to the specified element value pair.voidelementValuesAccept(Clazz clazz, ElementValueVisitor elementValueVisitor) Applies the given visitor to all element value pairs.Returns the type.voidreferencedClassAccept(ClassVisitor classVisitor) Applies the given visitor to the first referenced class.voidreferencedClassesAccept(ClassVisitor classVisitor) Applies the given visitor to all referenced classes.Methods 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
-
u2typeIndex
public int u2typeIndex -
u2elementValuesCount
public int u2elementValuesCount -
elementValues
-
referencedClasses
An extra field pointing to the Clazz objects referenced in the type string. This field is typically filled out by the. References to primitive types are ignored.ClassReferenceInitializer
-
-
Constructor Details
-
Annotation
public Annotation()Creates an uninitialized Annotation. -
Annotation
Creates an initialized Annotation.
-
-
Method Details
-
getType
Returns the type. -
referencedClassAccept
Applies the given visitor to the first referenced class. This is the main annotation class. -
referencedClassesAccept
Applies the given visitor to all referenced classes. -
elementValueAccept
Applies the given visitor to the specified element value pair. -
elementValuesAccept
Applies the given visitor to all element value pairs.
-