|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalt.jiapi.reflect.Instruction
public class Instruction
This class represents an entry in InstructionList.
InstructionList
Constructor Summary | |
---|---|
Instruction(byte[] bytes)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Gets a named attribute. |
byte[] |
getBytes()
Gets the bytes of this instruction. |
protected short |
getOffset()
Gets the offset of this instruction. |
byte |
getOpcode()
Gets the opcode of this Instruction. |
int |
length()
Get the length of this instruction. |
void |
setAttribute(java.lang.String name)
Sets a named attribute to this Instruction. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets a named attribute to this Instruction. |
protected void |
setBytes(byte[] bytes)
Set the bytes of this Instruction. |
protected void |
setOffset(short offset)
Sets the offset of this instruction. |
short |
stackConsumption()
Get the stack consumption of this Instruction. |
short |
stackUsage()
Get the stack usage this Instruction uses. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Instruction(byte[] bytes)
bytes
- Byte array representing this instruction. May
not be null. Bytes must have at least one byte in it.
java.lang.IllegalArgumentException
- is thrown, if byte[].length == 0
NullpointerException
- is thrown, if byte[] == nullMethod Detail |
---|
public java.lang.Object getAttribute(java.lang.String name)
public byte[] getBytes()
protected short getOffset()
public byte getOpcode()
public int length()
getBytes().length
public void setAttribute(java.lang.String name)
public void setAttribute(java.lang.String name, java.lang.Object value)
protected void setBytes(byte[] bytes)
bytes
- protected void setOffset(short offset)
public short stackConsumption()
public short stackUsage()
Some instructions may both consume and produce data on stack. This method returns the total usage after instruction has been executed.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |