public abstract class CONSTANT_ref_info extends CONSTANT_info
CONSTANT_Class_info and CONSTANT_NameAndType_info
entries.
The value of the class_index item must be a valid index into the constant pool
table. The constant pool entry at that index must be a CONSTANT_Class_info
structure representing the class or interface type that contains the declaration
of the field or method.
The class_index item of a CONSTANT_Fieldref_info or a CONSTANT_Methodref_info
structure must be a class type, not an interface type. The class_index item of
a CONSTANT_InterfaceMethodref_info structure must be an interface type
that declares the given method.
CONSTANT_Fieldref_info,
CONSTANT_Methodref_info,
CONSTANT_InterfaceMethodref_info| Modifier and Type | Field and Description |
|---|---|
int |
m_class_index |
int |
m_name_and_type_index |
| Modifier | Constructor and Description |
|---|---|
protected |
CONSTANT_ref_info(int class_index,
int name_and_type_index) |
protected |
CONSTANT_ref_info(UDataInputStream bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeInClassFormat(UDataOutputStream out) |
accept, clone, new_CONSTANT_info, tag, tagToString, toString, widthpublic int m_class_index
public int m_name_and_type_index
protected CONSTANT_ref_info(UDataInputStream bytes) throws java.io.IOException
java.io.IOExceptionprotected CONSTANT_ref_info(int class_index,
int name_and_type_index)
public void writeInClassFormat(UDataOutputStream out) throws java.io.IOException
writeInClassFormat in interface IClassFormatOutputwriteInClassFormat in class CONSTANT_infojava.io.IOException