public abstract class ConstantCP extends Constant
ConstantFieldref,
ConstantMethodref,
ConstantInterfaceMethodref,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected int |
class_index
References to the constants containing the class and the field signature
|
protected int |
name_and_type_index
References to the constants containing the class and the field signature
|
| Modifier | Constructor and Description |
|---|---|
protected |
ConstantCP(byte tag,
int class_index,
int name_and_type_index) |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(java.io.DataOutputStream file)
Dump constant field reference to file stream in binary format.
|
int |
getClassIndex() |
int |
getNameAndTypeIndex() |
java.lang.String |
toString() |
protected int class_index
protected int name_and_type_index
protected ConstantCP(byte tag,
int class_index,
int name_and_type_index)
class_index - Reference to the class containing the fieldname_and_type_index - and the field signaturepublic final void dump(java.io.DataOutputStream file)
throws java.io.IOException
public final int getClassIndex()
public final int getNameAndTypeIndex()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.