public class SelectionStatement extends Stmt
Modifier and Type | Field and Description |
---|---|
Expr |
condition |
Stmt |
stmt1 |
Stmt |
stmt2 |
int |
type |
static int |
TYPE_IF_ELSE |
static int |
TYPE_IF_ONLY |
debug, global_type, NOP, reader
Modifier and Type | Method and Description |
---|---|
java.lang.String |
calculate(java.lang.String labelToGoto) |
static SelectionStatement |
ctor(Reader r) |
void |
findStarNumber() |
void |
foo() |
boolean |
hasEq() |
boolean |
hasPlusEq() |
boolean |
hasStarEq() |
void |
parseForConstants() |
void |
parseLeft() |
void |
toStack(java.lang.StringBuffer sb,
int lineEnd,
Type type,
java.lang.String field,
boolean isBegEnd) |
java.lang.String |
toString() |
public Stmt stmt1
public Stmt stmt2
public Expr condition
public int type
public static final int TYPE_IF_ONLY
public static final int TYPE_IF_ELSE
public static SelectionStatement ctor(Reader r)
public void findStarNumber()
findStarNumber
in class Stmt
public java.lang.String calculate(java.lang.String labelToGoto)
public void toStack(java.lang.StringBuffer sb, int lineEnd, Type type, java.lang.String field, boolean isBegEnd)
public void parseForConstants()
parseForConstants
in class Stmt