Package org.codehaus.janino
Class Java.IfStatement
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Statement
org.codehaus.janino.Java.IfStatement
- All Implemented Interfaces:
Java.BlockStatement
,Java.Locatable
,Java.Scope
- Enclosing class:
- Java
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Java.Rvalue
final Java.BlockStatement
final Java.BlockStatement
Fields inherited from class org.codehaus.janino.Java.Statement
localVariables
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
ConstructorsConstructorDescriptionIfStatement
(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement, Java.BlockStatement optionalElseStatement) Notice that theelseStatement
is mandatory; for an if statement without an "else" clause, a dummyJava.EmptyStatement
should be passed. -
Method Summary
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 Details
-
condition
-
thenStatement
-
optionalElseStatement
-
-
Constructor Details
-
IfStatement
public IfStatement(Location location, Java.Rvalue condition, Java.BlockStatement thenStatement, Java.BlockStatement optionalElseStatement) Notice that theelseStatement
is mandatory; for an if statement without an "else" clause, a dummyJava.EmptyStatement
should be passed.
-
-
Method Details