|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zmpp.vm.Operand
public class Operand
This is the definition of an instruction's operand. Each operand has an operand type, and a value which is to be interpreted according to the type.
Nested Class Summary | |
---|---|
static class |
Operand.OperandType
The available operand types. |
Field Summary | |
---|---|
static byte |
TYPENUM_LARGE_CONSTANT
Type number for a large constant. |
static byte |
TYPENUM_OMITTED
Type number for omitted. |
static byte |
TYPENUM_SMALL_CONSTANT
Type number for a small constant. |
static byte |
TYPENUM_VARIABLE
Type number for a variable. |
Constructor Summary | |
---|---|
Operand(int typenum,
short value)
Constructor. |
Method Summary | |
---|---|
Operand.OperandType |
getType()
Returns this operand's type. |
short |
getValue()
The operand value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte TYPENUM_LARGE_CONSTANT
public static final byte TYPENUM_SMALL_CONSTANT
public static final byte TYPENUM_VARIABLE
public static final byte TYPENUM_OMITTED
Constructor Detail |
---|
public Operand(int typenum, short value)
typenum
- the type number, must be < 4value
- the operand valueMethod Detail |
---|
public Operand.OperandType getType()
public short getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |