public class Annotation extends SimpleProcessable
Modifier and Type | Field and Description |
---|---|
ElementValue[] |
elementValues |
Clazz[] |
referencedClasses
An extra field pointing to the Clazz objects referenced in the type string.
|
int |
u2elementValuesCount |
int |
u2typeIndex |
processingFlags, processingInfo
Constructor and Description |
---|
Annotation()
Creates an uninitialized Annotation.
|
Annotation(int u2typeIndex,
int u2elementValuesCount,
ElementValue[] elementValues)
Creates an initialized Annotation.
|
Modifier and Type | Method and Description |
---|---|
void |
elementValueAccept(Clazz clazz,
int index,
ElementValueVisitor elementValueVisitor)
Applies the given visitor to the specified element value pair.
|
void |
elementValuesAccept(Clazz clazz,
ElementValueVisitor elementValueVisitor)
Applies the given visitor to all element value pairs.
|
java.lang.String |
getType(Clazz clazz)
Returns the type.
|
void |
referencedClassAccept(ClassVisitor classVisitor)
Applies the given visitor to the first referenced class.
|
void |
referencedClassesAccept(ClassVisitor classVisitor)
Applies the given visitor to all referenced classes.
|
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
public int u2typeIndex
public int u2elementValuesCount
public ElementValue[] elementValues
public Clazz[] referencedClasses
ClassReferenceInitializer
. References to primitive types are ignored.public Annotation()
public Annotation(int u2typeIndex, int u2elementValuesCount, ElementValue[] elementValues)
public java.lang.String getType(Clazz clazz)
public void referencedClassAccept(ClassVisitor classVisitor)
public void referencedClassesAccept(ClassVisitor classVisitor)
public void elementValueAccept(Clazz clazz, int index, ElementValueVisitor elementValueVisitor)
public void elementValuesAccept(Clazz clazz, ElementValueVisitor elementValueVisitor)