org.apache.bcel.classfile
public final class ConstantNameAndType extends Constant
Version: $Id: ConstantNameAndType.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: Constant
| Field Summary | |
|---|---|
| int | name_index |
| int | signature_index |
| Constructor Summary | |
|---|---|
| ConstantNameAndType(ConstantNameAndType c)
Initialize from another object. | |
| ConstantNameAndType(DataInputStream file)
Initialize instance from file data.
| |
| ConstantNameAndType(int name_index, int signature_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 name and signature index to file stream in binary format.
|
| String | getName(ConstantPool cp) |
| int | getNameIndex() |
| String | getSignature(ConstantPool cp) |
| int | getSignatureIndex() |
| void | setNameIndex(int name_index) |
| void | setSignatureIndex(int signature_index) |
| String | toString() |
Parameters: file Input stream
Throws: IOException
Parameters: name_index Name of field/method signature_index and its signature
Parameters: v Visitor object
Parameters: file Output file stream
Throws: IOException
Returns: name
Returns: Name index in constant pool of field/method name.
Returns: signature
Returns: Index in constant pool of field/method signature.
Parameters: name_index the name index of this constant
Parameters: signature_index the signature index in the constant pool of this type
Returns: String representation