net.janino
Class Java.WhileStatement

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

public static class Java.WhileStatement
extends Java.ContinuableStatement


Fields inherited from class net.janino.Java.ContinuableStatement
bodyHasContinue, whereToContinue
 
Fields inherited from class net.janino.Java.Statement
enclosingScope
 
Constructor Summary
Java.WhileStatement(Scanner.Location location, Java.Scope enclosingScope, Java.Rvalue condition)
           
 
Method Summary
 boolean compile2(ClassFile.CodeAttribute codeAttribute)
           
 void setBody(Java.BlockStatement body)
           
 
Methods inherited from class net.janino.Java.BreakableStatement
compile, getWhereToBreak
 
Methods inherited from class net.janino.Java.Statement
getEnclosingScope, getLocation, leave, throwCompileException, throwParseException
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java.WhileStatement

public Java.WhileStatement(Scanner.Location location,
                           Java.Scope enclosingScope,
                           Java.Rvalue condition)
Method Detail

setBody

public void setBody(Java.BlockStatement body)

compile2

public boolean compile2(ClassFile.CodeAttribute codeAttribute)
                 throws Java.CompileException
Overrides:
compile2 in class Java.BreakableStatement