public static final class Java.IfStatement extends Java.Statement
Modifier and Type | Field and Description |
---|---|
Java.Rvalue |
condition |
Java.BlockStatement |
optionalElseStatement |
Java.BlockStatement |
thenStatement |
localVariables
NOWHERE
Constructor and Description |
---|
Java.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 Java.EmptyStatement should be passed. |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.BlockStatementVisitor visitor) |
String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScope
getLocation, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, throwCompileException
public final Java.Rvalue condition
public final Java.BlockStatement thenStatement
public final Java.BlockStatement optionalElseStatement
public Java.IfStatement(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement, Java.BlockStatement optionalElseStatement)
elseStatement
is mandatory; for an if statement without
an "else" clause, a dummy Java.EmptyStatement
should be passed.public void accept(Visitor.BlockStatementVisitor visitor)
Copyright © 2001-2013. All Rights Reserved.