public static final class Java.IfStatement extends Java.Statement
| Modifier and Type | Field and Description |
|---|---|
Java.Rvalue |
condition
The condition of the IF statement.
|
Java.BlockStatement |
elseStatement
The optional ELSE statement, which is executed iff the condition evaluates to FALSE.
|
Java.BlockStatement |
thenStatement
The "then statement", which is executed iff the condition evaluates to TRUE.
|
localVariablesNOWHERE| Constructor and Description |
|---|
IfStatement(Location location,
Java.Rvalue condition,
Java.BlockStatement thenStatement) |
IfStatement(Location location,
Java.Rvalue condition,
Java.BlockStatement thenStatement,
Java.BlockStatement elseStatement) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.BlockStatementVisitor<R,EX> visitor)
Invokes the "
visit...()" method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScopegetLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocation, throwCompileExceptionpublic final Java.Rvalue condition
public final Java.BlockStatement thenStatement
@Nullable public final Java.BlockStatement elseStatement
public IfStatement(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement)
public IfStatement(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement, @Nullable Java.BlockStatement elseStatement)
@Nullable public <R,EX extends Throwable> R accept(Visitor.BlockStatementVisitor<R,EX> visitor) throws EX extends Throwable
Java.BlockStatementvisit...()" method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type.EX extends ThrowableCopyright © 2019. All rights reserved.