|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> classdesc >> code >> [ instructions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.chaoswg.xtc4y.classdesc.code.instructions
Class ShortCPRefInstruction

java.lang.Objectcom.chaoswg.xtc4y.classdesc.code.instructions.Instruction
com.chaoswg.xtc4y.classdesc.code.instructions.BinaryInstruction
com.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:
handleOperandin classBinaryInstruction
getOperand
protected byte getOperand(com.chaoswg.xtc4y.classdesc.ConstantPool cp)
- Overrides:
getOperandin classBinaryInstruction
|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> classdesc >> code >> [ instructions overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC