com.caucho.bytecode
Class FieldRefConstant

java.lang.Object
  extended by com.caucho.bytecode.ConstantPoolEntry
      extended by com.caucho.bytecode.FieldRefConstant

public class FieldRefConstant
extends ConstantPoolEntry

Represents a field ref in the constant pool.


Method Summary
 int export(ConstantPool target)
          Exports to the target pool.
 int getClassIndex()
          Returns the class index.
 java.lang.String getClassName()
          Returns the class name
 java.lang.String getName()
          Returns the field name
 java.lang.String getType()
          Returns the method type
 void setClassIndex(int index)
          Sets the class index.
 void setNameAndType(java.lang.String name, java.lang.String type)
          Sets the method name and type
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.bytecode.ConstantPoolEntry
getConstantPool, getIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getClassIndex

public int getClassIndex()
Returns the class index.


setClassIndex

public void setClassIndex(int index)
Sets the class index.


getClassName

public java.lang.String getClassName()
Returns the class name


getName

public java.lang.String getName()
Returns the field name


getType

public java.lang.String getType()
Returns the method type


setNameAndType

public void setNameAndType(java.lang.String name,
                           java.lang.String type)
Sets the method name and type


export

public int export(ConstantPool target)
Exports to the target pool.

Returns:
the index in the target pool.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object