public class ClassElementValue extends ElementValue
| 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, u2elementNameIndex, visitorInfo| 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.
|
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, getVisitorInfo, referencedMethodAccept, setVisitorInfopublic int u2classInfoIndex
public Clazz[] referencedClasses
ClassReferenceInitializer.
References to primitive types are ignored.public ClassElementValue()
public ClassElementValue(int u2elementNameIndex,
int u2classInfoIndex)
public void referencedClassesAccept(ClassVisitor classVisitor)
public char getTag()
ElementValuegetTag in class ElementValuepublic void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
ElementValueaccept in class ElementValueCopyright © 2015. All Rights Reserved.