alt.jiapi.reflect.instruction
Class CPInstruction

java.lang.Object
  extended by alt.jiapi.reflect.Instruction
      extended by alt.jiapi.reflect.instruction.CPInstruction
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
ReferencingInstruction

public class CPInstruction
extends Instruction

This class represents an Instruction, that has a reference to Constant pool

Version:
$Revision: 1.8 $ $Date: 2004/08/08 10:16:06 $
Author:
Mika Riekkinen, Joni Suominen

Field Summary
protected  ConstantPool cp
           
 
Constructor Summary
CPInstruction(byte[] bytes, ConstantPool cp)
           
 
Method Summary
 ConstantPool getConstantPool()
          Get ConstantPool
 ConstantPool.Entry getEntry()
          Get the ConstantPool entry, this CPInstruction is referencing.
 int getIndex()
          Gets the index to the constant pool, that is referenced by this CPInstruction.
 void replaceConstantPool(ConstantPool newCP)
           
 java.lang.String toString()
           
 
Methods inherited from class alt.jiapi.reflect.Instruction
getAttribute, getBytes, getOffset, getOpcode, length, setAttribute, setAttribute, setBytes, setOffset, stackConsumption, stackUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cp

protected ConstantPool cp
Constructor Detail

CPInstruction

public CPInstruction(byte[] bytes,
                     ConstantPool cp)
Method Detail

getConstantPool

public ConstantPool getConstantPool()
Get ConstantPool


getEntry

public ConstantPool.Entry getEntry()
Get the ConstantPool entry, this CPInstruction is referencing.


getIndex

public int getIndex()
Gets the index to the constant pool, that is referenced by this CPInstruction.


replaceConstantPool

public void replaceConstantPool(ConstantPool newCP)

toString

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


Copyright © 2001. Documenation generated August 26 2011.