public class ClassConstant extends Constant
UTF8Constant
which
holds the fully qualifies class name.Constructor and Description |
---|
ClassConstant(Constant[] pool,
int nameIndex)
Creates an instance for the specified index refering an
UTF8Constant . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the fully-qualified class name.
|
java.lang.String |
toString()
Returns the constant type and the class name.
|
extractConstantPool, getConstant
public ClassConstant(Constant[] pool, int nameIndex)
UTF8Constant
.pool
- Pool of all Constants
.nameIndex
- Index into pool.public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object