net.janino
Class Java.EmptyStatement

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

public static class Java.EmptyStatement
extends Java.Statement

Represents the "empty statement", i.e. the blank semicolon.


Fields inherited from class net.janino.Java.Statement
enclosingScope
 
Constructor Summary
Java.EmptyStatement(Scanner.Location location, Java.Scope enclosingScope)
           
 
Method Summary
 boolean compile()
           
 boolean generatesCode()
          Check whether invocation of compile() would generate more than zero code bytes.
 
Methods inherited from class net.janino.Java.Statement
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.EmptyStatement

public Java.EmptyStatement(Scanner.Location location,
                           Java.Scope enclosingScope)
Method Detail

generatesCode

public boolean generatesCode()
Description copied from class: Java.BlockStatement
Check whether invocation of Java.BlockStatement.compile() would generate more than zero code bytes.
Overrides:
generatesCode in class Java.Statement

compile

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