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.Rvaluefinal Java.BlockStatementfinal Java.BlockStatementFields inherited from class org.codehaus.janino.Java.Statement
localVariablesFields 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 theelseStatementis mandatory; for an if statement without an "else" clause, a dummyJava.EmptyStatementshould be passed. -
Method Summary
Methods inherited from class org.codehaus.janino.Java.Statement
findLocalVariable, getEnclosingScope, setEnclosingScopeMethods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 theelseStatementis mandatory; for an if statement without an "else" clause, a dummyJava.EmptyStatementshould be passed.
-
-
Method Details