org.codehaus.janino
Class Java.Located
java.lang.Object
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.PackageDeclaration, Java.Statement, Java.SwitchStatement.SwitchBlockStatementGroup, Java.VariableDeclarator
- Enclosing class:
- Java
public abstract static class Java.Located
- extends Object
- implements Java.Locatable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Java.Located
protected Java.Located(Location location)
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