org.apache.bcel.classfile
public final class ConstantClass extends Constant implements ConstantObject
Version: $Id: ConstantClass.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: Constant
| Field Summary | |
|---|---|
| int | name_index |
| Constructor Summary | |
|---|---|
| ConstantClass(ConstantClass c)
Initialize from another object. | |
| ConstantClass(DataInputStream file)
Initialize instance from file data.
| |
| 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: file Input stream
Throws: IOException
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.