|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.janino.Java.Located | +--net.janino.Java.BlockStatement | +--net.janino.Java.Statement | +--net.janino.Java.IfStatement
Fields inherited from class net.janino.Java.Statement |
enclosingScope |
Constructor Summary | |
Java.IfStatement(Scanner.Location location,
Java.Scope enclosingScope,
Java.Rvalue condition,
Java.BlockStatement thenStatement,
Java.BlockStatement elseStatement)
Notice that the elseStatement is mandatory; for an if statement without
an "else" clause, a dummy Java.EmptyStatement should be passed. |
Method Summary | |
boolean |
compile()
|
Methods inherited from class net.janino.Java.Statement |
generatesCode, getEnclosingScope, leave |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Java.IfStatement(Scanner.Location location, Java.Scope enclosingScope, Java.Rvalue condition, Java.BlockStatement thenStatement, Java.BlockStatement elseStatement)
elseStatement
is mandatory; for an if statement without
an "else" clause, a dummy Java.EmptyStatement
should be passed.Method Detail |
public boolean compile() throws Java.CompileException
compile
in class Java.Statement
net.janino.Java.BlockStatement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |