net.janino
Class Java.IfStatement

java.lang.Object
  |
  +--net.janino.Java.Located
        |
        +--net.janino.Java.BlockStatement
              |
              +--net.janino.Java.Statement
                    |
                    +--net.janino.Java.IfStatement
All Implemented Interfaces:
Java.Locatable, Java.Scope
Enclosing class:
Java

public static class Java.IfStatement
extends Java.Statement


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 net.janino.Java.BlockStatement
addConstantFloatInfo, addConstantIntegerInfo, addConstantStringInfo, allocateLocalVariable, compileError, createDummyCodeAttribute, getLocation, newInserter, newOffset, newUnsetOffset, popInserter, pushInserter, restoreLocalVariables, saveLocalVariables, throwParseException, write, writeBranch, writeByte, writeConstantClassInfo, writeConstantDoubleInfo, writeConstantFieldrefInfo, writeConstantFloatInfo, writeConstantIntegerInfo, writeConstantInterfaceMethodrefInfo, writeConstantLongInfo, writeConstantMethodrefInfo, writeConstantStringInfo, writeInt, writeOffset, writeOpcode, writeShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java.IfStatement

public 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 Detail

compile

public boolean compile()
                throws Java.CompileException
Overrides:
compile in class Java.Statement
Following copied from class: net.janino.Java.BlockStatement
Returns:
false if this statement cannot complete normally (14.20)