|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InstructionFactory
This interface defines the set of methods every concrete class meant for instantiating bytecode instruction classes should define.
Method Summary | |
---|---|
Instruction |
getInstruction(byte opCode)
This method returns class instances implementing the Instruction interface. |
Instruction |
getInstruction(int opCode)
This method returns classe instances implementing the Instruction interface. |
int |
getIntOpCodeFromByte(byte opCode)
Method for obtaining the int value associated with the given byte
representation of the JVM's instruction operation code. |
byte |
getIntOpCodeFromByte(int opCode)
Method for obtaining the byte value associated with the given int
representation of the JVM's instruction operation code. |
Method Detail |
---|
Instruction getInstruction(int opCode) throws UnknownOpCodeException
Instruction
interface.
It requires as input parameter the numeric operation code which identifies the instruction we
want to create.
opCode
- The instruction opcode
Instruction
class.
UnknownOpCodeException
- The specified opcode has not been recognizedInstruction getInstruction(byte opCode) throws UnknownOpCodeException
Instruction
interface. It
requires as input parameter the numeric operation code which identifies the instruction we
want to create.
opCode
- The opcode identifying the desired instruction
Instruction
class.
UnknownOpCodeException
- The specified opCode is not recognizedint getIntOpCodeFromByte(byte opCode)
int
value associated with the given byte
representation of the JVM's instruction operation code.
opCode
- The operation code as a byte
byte getIntOpCodeFromByte(int opCode)
byte
value associated with the given int
representation of the JVM's instruction operation code.
opCode
- The operation code as an integter value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |