Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.chaoswg.xtc4y.classdesc.code.instructions
Class ShortCPRefInstruction  view ShortCPRefInstruction download ShortCPRefInstruction.java

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.code.instructions.Instruction
      extended bycom.chaoswg.xtc4y.classdesc.code.instructions.BinaryInstruction
          extended bycom.chaoswg.xtc4y.classdesc.code.instructions.ShortCPRefInstruction
Direct Known Subclasses:
LDC

public class ShortCPRefInstruction
extends BinaryInstruction

This cpreference instruction has as an operand just a byte representing a valid index into the cp table


Field Summary
private  com.chaoswg.xtc4y.classdesc.ConstantPoolEntry cpEntry
           
static byte LDC
          load an int, byte, short, float, string, char from the cp
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.code.instructions.BinaryInstruction
ALOAD, ASTORE, BIPUSH, DLOAD, DSTORE, FLOAD, FSTORE, ILOAD, ISTORE, LLOAD, LSTORE, RET
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.code.instructions.Instruction
 
Constructor Summary
protected ShortCPRefInstruction(byte command, com.chaoswg.xtc4y.classdesc.ConstantPoolEntry cpEntry)
          Create a new binary instruction with a command and the byte value as operand
protected ShortCPRefInstruction(byte command, java.io.DataInputStream dis, com.chaoswg.xtc4y.classdesc.ConstantPool cp)
          Creates an ShortCPRefInstruction and initializes it from a DataInputStream.
 
Method Summary
protected  byte getOperand(com.chaoswg.xtc4y.classdesc.ConstantPool cp)
           
protected  void handleOperand(byte operand, com.chaoswg.xtc4y.classdesc.ConstantPool cp)
          Handle operand.
 
Methods inherited from class com.chaoswg.xtc4y.classdesc.code.instructions.BinaryInstruction
getNumberOfUsedBytes, toString, write
 
Methods inherited from class com.chaoswg.xtc4y.classdesc.code.instructions.Instruction
getCommand, getIndex, getOpcode, resolveIndices, setIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cpEntry

private com.chaoswg.xtc4y.classdesc.ConstantPoolEntry cpEntry

LDC

public static final byte LDC
load an int, byte, short, float, string, char from the cp

See Also:
Constant Field Values
Constructor Detail

ShortCPRefInstruction

protected ShortCPRefInstruction(byte command,
                                java.io.DataInputStream dis,
                                com.chaoswg.xtc4y.classdesc.ConstantPool cp)
                         throws java.io.IOException
Creates an ShortCPRefInstruction and initializes it from a DataInputStream. the operand is read from the stream and provided to extending classes for a further handling of it


ShortCPRefInstruction

protected ShortCPRefInstruction(byte command,
                                com.chaoswg.xtc4y.classdesc.ConstantPoolEntry cpEntry)
Create a new binary instruction with a command and the byte value as operand

Method Detail

handleOperand

protected void handleOperand(byte operand,
                             com.chaoswg.xtc4y.classdesc.ConstantPool cp)
Handle operand. By default, the operands value is stored. Another behaviour may be implemented in an extending class

Overrides:
handleOperand in class BinaryInstruction

getOperand

protected byte getOperand(com.chaoswg.xtc4y.classdesc.ConstantPool cp)
Overrides:
getOperand in class BinaryInstruction