public class ClassConstant extends Constant
| Modifier and Type | Field and Description |
|---|---|
Clazz |
javaLangClassClass
An extra field pointing to the java.lang.Class Clazz object.
|
Clazz |
referencedClass
An extra field pointing to the referenced Clazz object.
|
int |
u2nameIndex |
visitorInfo| Constructor and Description |
|---|
ClassConstant()
Creates an uninitialized ClassConstant.
|
ClassConstant(int u2nameIndex,
Clazz referencedClass)
Creates a new ClassConstant with the given name index.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor.
|
String |
getName(Clazz clazz)
Returns the name.
|
int |
getTag()
Returns the constant pool info tag that specifies the entry type.
|
void |
referencedClassAccept(ClassVisitor classVisitor)
Lets the referenced class accept the given visitor.
|
getVisitorInfo, setVisitorInfopublic int u2nameIndex
public Clazz referencedClass
ClassReferenceInitializer.public Clazz javaLangClassClass
ClassReferenceInitializer..public ClassConstant()
public ClassConstant(int u2nameIndex,
Clazz referencedClass)
u2nameIndex - the index of the name in the constant pool.referencedClass - the referenced class.public int getTag()
Constantpublic void accept(Clazz clazz, ConstantVisitor constantVisitor)
Constantpublic void referencedClassAccept(ClassVisitor classVisitor)
Copyright © 2015. All Rights Reserved.