jconst
Class constRef

java.lang.Object
  |
  +--util.dataRead
        |
        +--jconst.constBase
              |
              +--jconst.constRef

public class constRef
extends constBase

The constRef object represents CONSTANT_FieldRef, CONSTANT_MethodRef and CONSTANT_InterfaceMethodRef. The format is

CONSTANT_<>ref_info {
u1 tag;
u2 index;
u2 name_and_type_index
}

index must be a an index in the constant table for a constClass_or_String object.

The name_and_type_index must be an index in the constant table for a constName_and_type_info object.

Note that this class is not derived from the constClass_or_String since the reference pointers do not point to constUtf8 classes.


Field Summary
(package private)  constClass_or_String class_ref
           
(package private)  int index
           
(package private)  int name_and_type_index
           
(package private)  constName_and_Type_info name_ref
           
 
Fields inherited from class jconst.constBase
tag
 
Fields inherited from class util.dataRead
bytesRead
 
Constructor Summary
constRef()
           
 
Method Summary
 java.lang.String getString()
           
 void pr()
           
 void read(java.io.DataInputStream dStream)
           
 void set_ref(constBase[] objAry)
           
 
Methods inherited from class jconst.constBase
prString, Tag_to_String
 
Methods inherited from class util.dataRead
getBytesRead, readU1, readU2, readU4
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

index

int index

name_and_type_index

int name_and_type_index

class_ref

constClass_or_String class_ref

name_ref

constName_and_Type_info name_ref
Constructor Detail

constRef

public constRef()
Method Detail

read

public void read(java.io.DataInputStream dStream)
Overrides:
read in class constBase

set_ref

public void set_ref(constBase[] objAry)
Overrides:
set_ref in class constBase

getString

public java.lang.String getString()
Overrides:
getString in class constBase

pr

public void pr()
Overrides:
pr in class constBase