Web Site

org.codehaus.janino
Class Java.Statement

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.Statement
All Implemented Interfaces:
Java.BlockStatement, Java.Locatable, Java.Scope
Direct Known Subclasses:
Java.Block, Java.BreakableStatement, Java.BreakStatement, Java.ContinueStatement, Java.EmptyStatement, Java.ExpressionStatement, Java.FieldDeclarator, Java.IfStatement, Java.LocalClassDeclarationStatement, Java.LocalVariableDeclarationStatement, Java.ReturnStatement, Java.SynchronizedStatement, Java.ThrowStatement, Java.TryStatement
Enclosing class:
Java

public abstract static class Java.Statement
extends org.codehaus.janino.Java.Located
implements Java.BlockStatement


Field Summary
protected  Java.Scope enclosingScope
           
 
Constructor Summary
protected Java.Statement(Location location, Java.Scope enclosingScope)
           
 
Method Summary
 Java.Scope getEnclosingScope()
           
 Location getLocation()
           
 void throwParseException(String message)
          Throw a Parser.ParseException with the given message and this object's location.
 
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.BlockStatement
visit
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwParseException
 

Field Detail

enclosingScope

protected final Java.Scope enclosingScope
Constructor Detail

Java.Statement

protected Java.Statement(Location location,
                         Java.Scope enclosingScope)
Method Detail

getEnclosingScope

public Java.Scope getEnclosingScope()
Specified by:
getEnclosingScope in interface Java.Scope
Returns:
Enclusing scope or "null".

getLocation

public Location getLocation()
Specified by:
getLocation in interface Java.Locatable

throwParseException

public void throwParseException(String message)
                         throws Parser.ParseException
Description copied from interface: Java.Locatable
Throw a Parser.ParseException with the given message and this object's location.

Specified by:
throwParseException in interface Java.Locatable
Parameters:
message - The message to report
Throws:
Parser.ParseException

Web Site