public class ClassElementValue extends ElementValue
ElementValue
represents a class element value.Modifier and Type | Field and Description |
---|---|
Clazz[] |
referencedClasses
An extra field pointing to the Clazz objects referenced in the type name string.
|
int |
u2classInfoIndex |
referencedClass, referencedMethod, TAG_ANNOTATION, TAG_ARRAY, TAG_CLASS, TAG_ENUM_CONSTANT, TAG_STRING_CONSTANT, u2elementNameIndex
processingFlags, processingInfo
Constructor and Description |
---|
ClassElementValue()
Creates an uninitialized ClassElementValue.
|
ClassElementValue(int u2elementNameIndex,
int u2classInfoIndex)
Creates an initialized ClassElementValue.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Clazz clazz,
Annotation annotation,
ElementValueVisitor elementValueVisitor)
Accepts the given visitor.
|
java.lang.String |
getClassName(Clazz clazz)
Returns the class info name.
|
char |
getTag()
Returns the tag of this element value.
|
void |
referencedClassesAccept(ClassVisitor classVisitor)
Applies the given visitor to all referenced classes.
|
getMethodName, referencedMethodAccept
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
public int u2classInfoIndex
public Clazz[] referencedClasses
ClassReferenceInitializer
. References
to primitive types are ignored.public ClassElementValue()
public ClassElementValue(int u2elementNameIndex, int u2classInfoIndex)
public java.lang.String getClassName(Clazz clazz)
public void referencedClassesAccept(ClassVisitor classVisitor)
public char getTag()
ElementValue
getTag
in class ElementValue
public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
ElementValue
accept
in class ElementValue