janino.net

org.codehaus.janino
Class Java.Located

java.lang.Object
  extended by org.codehaus.janino.Java.Located
All Implemented Interfaces:
Java.Locatable
Direct Known Subclasses:
Java.AbstractTypeBodyDeclaration, Java.ArrayInitializer, Java.Atom, Java.CatchClause, Java.CompilationUnit.ImportDeclaration, Java.FunctionDeclarator.FormalParameter, Java.FunctionDeclarator.FormalParameters, Java.PackageDeclaration, Java.Statement, Java.SwitchStatement.SwitchBlockStatementGroup, Java.VariableDeclarator
Enclosing class:
Java

public abstract static class Java.Located
extends Object
implements Java.Locatable

Abstract implementation of Java.Locatable.


Field Summary
static Java.Located NOWHERE
          Indication of 'no' or 'unknown' location.
 
Constructor Summary
protected Java.Located(Location location)
           
 
Method Summary
 Location getLocation()
           
 void throwCompileException(String message)
          Throw a CompileException 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
 

Field Detail

NOWHERE

public static final Java.Located NOWHERE
Indication of 'no' or 'unknown' location.

Constructor Detail

Java.Located

protected Java.Located(Location location)
Method Detail

getLocation

public Location getLocation()
Specified by:
getLocation in interface Java.Locatable
Returns:
The location of this object

throwCompileException

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

Specified by:
throwCompileException in interface Java.Locatable
Parameters:
message - The message to report
Throws:
CompileException

janino.net