|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.Java.Located
org.codehaus.janino.Java.Statement
org.codehaus.janino.Java.IfStatement
public static final class Java.IfStatement
Representation of a JLS7 14.9 IF statement.
| Field Summary | |
|---|---|
Java.Rvalue |
condition
The condition of the IF statement. |
Java.BlockStatement |
optionalElseStatement
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. |
| Fields inherited from class org.codehaus.janino.Java.Statement |
|---|
localVariables |
| Fields inherited from class org.codehaus.janino.Java.Located |
|---|
NOWHERE |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
accept(Visitor.BlockStatementVisitor visitor)
Invokes the ' visit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
String |
toString()
|
| Methods inherited from class org.codehaus.janino.Java.Statement |
|---|
findLocalVariable, getEnclosingScope, setEnclosingScope |
| Methods inherited from class org.codehaus.janino.Java.Located |
|---|
getLocation, throwCompileException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.codehaus.janino.Java.Locatable |
|---|
getLocation, throwCompileException |
| Field Detail |
|---|
public final Java.Rvalue condition
public final Java.BlockStatement thenStatement
public final Java.BlockStatement optionalElseStatement
| Constructor Detail |
|---|
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.
| Method Detail |
|---|
public String toString()
toString in class Objectpublic void accept(Visitor.BlockStatementVisitor visitor)
Java.BlockStatementvisit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type.
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||