|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.janino.Java.Statement | +--net.janino.Java.SynchronizedStatement
Fields inherited from class net.janino.Java.Statement |
enclosingScope |
Constructor Summary | |
Java.SynchronizedStatement(Scanner.Location location,
Java.Scope enclosingScope,
Java.Rvalue expression)
|
Method Summary | |
boolean |
compile(ClassFile.CodeAttribute codeAttribute)
|
void |
leave(ClassFile.CodeAttribute codeAttribute)
Clean up the statement context. |
void |
setBody(Java.BlockStatement body)
|
Methods inherited from class net.janino.Java.Statement |
getEnclosingScope, getLocation, throwCompileException, throwParseException |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Java.SynchronizedStatement(Scanner.Location location, Java.Scope enclosingScope, Java.Rvalue expression)
Method Detail |
public void setBody(Java.BlockStatement body)
public boolean compile(ClassFile.CodeAttribute codeAttribute) throws Java.CompileException
compile
in class Java.Statement
net.janino.Java.BlockStatement
public void leave(ClassFile.CodeAttribute codeAttribute)
Java.BlockStatement
Statements like "return", "break", "continue" must call this method for all the statements they terminate.
Notice: The code generated by this method must not modify the operand stack, i.e. if the code needs any state information, then that information must be passed to it in unnamed local variables.
leave
in class Java.Statement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |