|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Opcode> com.joanju.cg.bytecode.Opcode
public enum Opcode
Enumerator of valid Opcodes. Doubles as our "factory" for creating all the *Instr (instruction) Bytecode objects.
Method Summary | |
---|---|
static Opcode[] |
callCodes()
Get an array of codes for subclasses of AbstractCall. |
int |
code()
Get the Opcode code for storing the integer value in the database. |
abstract Bytecode |
createInstr(int cu,
int addr)
Create a Bytecode instruction object of the appropriate subclass for this Opcode. |
static Opcode |
get(int code)
Get the Opcode enum object for a given Opcode code out of the database. |
boolean |
isCall()
Is this opcode used as a subclass of AbstractCall? |
java.lang.String |
toString()
Get the lowercase name of the opCode (more suitable for printing). |
static Opcode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Opcode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Opcode ADDSNSUPER
public static final Opcode ADDSUPER
public static final Opcode BUILTINFUNC
public static final Opcode CALL
public static final Opcode CALLIN
public static final Opcode CALLSUPER
public static final Opcode CHECKVALS
public static final Opcode COMPILEUNIT
public static final Opcode DECLEVENT
public static final Opcode DECLSNSUP
public static final Opcode DEF
public static final Opcode DEFGLOBAL
public static final Opcode DEFSHARED
public static final Opcode DEFVAR
public static final Opcode GETSHARED
public static final Opcode LITERALNUM
public static final Opcode LITERALSTR
public static final Opcode POP
public static final Opcode PROCEDURE
public static final Opcode PUBLISH
public static final Opcode PUSH
public static final Opcode PUSHONRET
public static final Opcode RETURN
public static final Opcode RETVALGET
public static final Opcode RETVALSET
public static final Opcode SCRIPTVALS
public static final Opcode SUBSCRIBE
public static final Opcode SUPERS
public static final Opcode SYSHANDLE
public static final Opcode TRIGGERBLOCK
public static final Opcode UNKNOWNVAL
public static final Opcode UNRES
Method Detail |
---|
public static final Opcode[] values()
for(Opcode c : Opcode.values()) System.out.println(c);
public static Opcode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static Opcode[] callCodes()
public int code()
public abstract Bytecode createInstr(int cu, int addr)
public static Opcode get(int code)
public boolean isCall()
public java.lang.String toString()
toString
in class java.lang.Enum<Opcode>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |