Web Site

org.codehaus.janino
Class Java.IfStatement

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.Statement
          extended byorg.codehaus.janino.Java.IfStatement
All Implemented Interfaces:
Java.BlockStatement, Java.Locatable, Java.Scope
Enclosing class:
Java

public static final class Java.IfStatement
extends Java.Statement


Field Summary
 
Fields inherited from class org.codehaus.janino.Java.Statement
enclosingScope
 
Constructor Summary
Java.IfStatement(Location location, Java.Scope enclosingScope, 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 visit(org.codehaus.janino.Visitor.BlockStatementVisitor visitor)
           
 
Methods inherited from class org.codehaus.janino.Java.Statement
getEnclosingScope, getLocation, throwParseException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwParseException
 

Constructor Detail

Java.IfStatement

public Java.IfStatement(Location location,
                        Java.Scope enclosingScope,
                        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 Detail

visit

public final void visit(org.codehaus.janino.Visitor.BlockStatementVisitor visitor)

Web Site