|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javar.methods.Command
This class represents a single command and all the operations that are associated with this command.
| Nested Class Summary |
| Nested classes inherited from class javar.code.Code |
Code.CodeHelper |
| Field Summary |
| Constructor Summary | |
Command(byte code)
Constructor |
|
| Method Summary | |
void |
addArgument(Object arg)
This will add an argument that this command takes. |
Object |
getArgument(int i)
This will get a specific argument |
List |
getArguments()
This will get a specific argument |
byte[] |
getBytes()
This will get the bytes of this command. |
int |
getIndex()
This will get the index of where this code is located |
byte |
getOpCode()
This will get the opcode for this command |
boolean |
isWide()
This will tell if this is a wide or short command. |
void |
setIndex(int i)
This will represent the index in code that this command is located |
void |
setWide(boolean w)
This will set whether or not this is a wide command or not |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Command(byte code)
| Method Detail |
public boolean isWide()
public void setWide(boolean w)
w - A boolean telling if this is a wide command or notpublic void addArgument(Object arg)
arg - An argument for this commandpublic Object getArgument(int i)
public List getArguments()
public void setIndex(int i)
public int getIndex()
public byte getOpCode()
public byte[] getBytes()
throws JavarIOException
JavarIOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||