Package org.codehaus.janino
Class Java.Located
java.lang.Object
org.codehaus.janino.Java.Located
- All Implemented Interfaces:
Java.Locatable
- Direct Known Subclasses:
Java.AbstractCompilationUnit.ImportDeclaration
,Java.AbstractTypeBodyDeclaration
,Java.AccessModifier
,Java.ArrayInitializer
,Java.Atom
,Java.CatchClause
,Java.CatchParameter
,Java.ElementValueArrayInitializer
,Java.ExportsModuleDirective
,Java.FunctionDeclarator.FormalParameter
,Java.FunctionDeclarator.FormalParameters
,Java.ModuleDeclaration
,Java.OpensModuleDirective
,Java.PackageDeclaration
,Java.ProvidesModuleDirective
,Java.RequiresModuleDirective
,Java.Statement
,Java.SwitchStatement.SwitchBlockStatementGroup
,Java.TryStatement.Resource
,Java.UsesModuleDirective
,Java.VariableDeclarator
- Enclosing class:
- Java
Abstract implementation of
Java.Locatable
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Location
static final Java.Located
Indication of "no" or "unknown" location. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
throwCompileException
(String message) Throws aCompileException
with the given message and this object's location.
-
Field Details
-
NOWHERE
Indication of "no" or "unknown" location. -
location
-
-
Constructor Details
-
Located
-
-
Method Details
-
getLocation
- Specified by:
getLocation
in interfaceJava.Locatable
- Returns:
- The location of this object
-
throwCompileException
Description copied from interface:Java.Locatable
Throws aCompileException
with the given message and this object's location.- Specified by:
throwCompileException
in interfaceJava.Locatable
- Parameters:
message
- The message to report- Throws:
CompileException
-