org.apache.bcel.classfile
public final class ConstantClass extends Constant implements ConstantObject
See Also: Constant
Constructor Summary | |
---|---|
ConstantClass(ConstantClass c)
Initialize from another object. | |
ConstantClass(int name_index) |
Method Summary | |
---|---|
void | accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. |
void | dump(DataOutputStream file)
Dump constant class to file stream in binary format.
|
String | getBytes(ConstantPool cp) |
Object | getConstantValue(ConstantPool cp) |
int | getNameIndex() |
void | setNameIndex(int name_index) |
String | toString() |
Parameters: name_index Name index in constant pool. Should refer to a ConstantUtf8.
Parameters: v Visitor object
Parameters: file Output file stream
Throws: IOException
Returns: dereferenced string
Returns: String object
Returns: Name index in constant pool of class name.
Parameters: name_index the name index in the constant pool of this Constant Class
Returns: String representation.