org.codehaus.janino
public static final class Java.IfStatement extends Java.Statement
| Field Summary | |
|---|---|
| Java.Rvalue | condition |
| Java.BlockStatement | optionalElseStatement |
| Java.BlockStatement | thenStatement |
| Constructor Summary | |
|---|---|
| IfStatement(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement, Java.BlockStatement optionalElseStatement)
Notice that the elseStatement is mandatory; for an if statement without
an "else" clause, a dummy EmptyStatement should be passed. | |
| Method Summary | |
|---|---|
| void | accept(Visitor.BlockStatementVisitor visitor) |
| String | toString() |
elseStatement is mandatory; for an if statement without
an "else" clause, a dummy EmptyStatement should be passed.