Package 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 java.lang.Object implements Java.Locatable
-
-
Field Summary
Fields Modifier and Type Field Description static Java.LocatedNOWHERE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationgetLocation()voidthrowCompileException(java.lang.String message)Throw aCompileExceptionwith the given message and this object's location.
-
-
-
Field Detail
-
NOWHERE
public static final Java.Located NOWHERE
-
-
Constructor Detail
-
Located
protected Located(Location location)
-
-
Method Detail
-
getLocation
public Location getLocation()
- Specified by:
getLocationin interfaceJava.Locatable
-
throwCompileException
public void throwCompileException(java.lang.String message) throws CompileExceptionDescription copied from interface:Java.LocatableThrow aCompileExceptionwith the given message and this object's location.- Specified by:
throwCompileExceptionin interfaceJava.Locatable- Parameters:
message- The message to report- Throws:
CompileException
-
-