public class Execode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Execode.Constant |
static class |
Execode.EInstruction |
static class |
Execode.EOperand |
static class |
Execode.EXXXInstruction |
static class |
Execode.Instruction |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<Execode.Instruction> |
code |
private static Execode.EInstruction[] |
instrTable |
Constructor and Description |
---|
Execode() |
Modifier and Type | Method and Description |
---|---|
void |
addInstr(Execode.EInstruction instr) |
void |
addInstr(Execode.EInstruction instr,
java.lang.String val) |
void |
addInstrVariable(Execode.EInstruction instr,
int idVar,
java.lang.String name) |
java.lang.Iterable<Execode.Instruction> |
code() |
java.lang.CharSequence |
convertToNormalExpression()
Returns the given Expression as a non-ReversPolishNotation.
|
static void |
main(java.lang.String[] args) |
java.lang.String |
toString() |
private static Execode.EInstruction[] instrTable
java.util.List<Execode.Instruction> code
public void addInstr(Execode.EInstruction instr, java.lang.String val)
public void addInstr(Execode.EInstruction instr)
public void addInstrVariable(Execode.EInstruction instr, int idVar, java.lang.String name)
public java.lang.Iterable<Execode.Instruction> code()
public java.lang.CharSequence convertToNormalExpression()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)