public class Annotation extends Object implements VisitorAccepter
| 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 |
Object |
visitorInfo
An extra field in which visitors can store information.
|
| 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 |
elementValuesAccept(Clazz clazz,
ElementValueVisitor elementValueVisitor)
Applies the given visitor to all element value pairs.
|
String |
getType(Clazz clazz)
Returns the type.
|
Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter.
|
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.
|
void |
setVisitorInfo(Object visitorInfo)
Sets the visitor information of the visitor accepter.
|
public int u2typeIndex
public int u2elementValuesCount
public ElementValue[] elementValues
public Clazz[] referencedClasses
ClassReferenceInitializer.
References to primitive types are ignored.public Object visitorInfo
public Annotation()
public Annotation(int u2typeIndex,
int u2elementValuesCount,
ElementValue[] elementValues)
public void referencedClassAccept(ClassVisitor classVisitor)
public void referencedClassesAccept(ClassVisitor classVisitor)
public void elementValuesAccept(Clazz clazz, ElementValueVisitor elementValueVisitor)
public Object getVisitorInfo()
VisitorAcceptergetVisitorInfo in interface VisitorAccepterpublic void setVisitorInfo(Object visitorInfo)
VisitorAcceptersetVisitorInfo in interface VisitorAccepterCopyright © 2015. All Rights Reserved.