Modifier and Type | Field and Description |
---|---|
protected Stmt |
elseStmt
The else statement
|
protected Expr |
predExpr
The predicate expression
|
protected Stmt |
thenStmt
The then statement
|
Constructor and Description |
---|
IfStmt(int lineNum,
Expr predExpr,
Stmt thenStmt,
Stmt elseStmt)
IfStmt constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method
|
Stmt |
getElseStmt()
Get the else statement
|
Expr |
getPredExpr()
Get the predicate expression
|
Stmt |
getThenStmt()
Get the then statement
|
getLineNum
protected Expr predExpr
protected Stmt thenStmt
protected Stmt elseStmt