Java.Locatable
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
public abstract static class Java.Located extends Object implements Java.Locatable
Java.Locatable
.Modifier and Type | Field | Description |
---|---|---|
static Java.Located |
NOWHERE |
Indication of 'no' or 'unknown' location.
|
Modifier | Constructor | Description |
---|---|---|
protected |
Located(Location location) |
Modifier and Type | Method | Description |
---|---|---|
Location |
getLocation() |
|
void |
throwCompileException(String message) |
Throw a
CompileException with the given message and this
object's location. |
public static final Java.Located NOWHERE
protected Located(Location location)
public Location getLocation()
getLocation
in interface Java.Locatable
public void throwCompileException(String message) throws CompileException
Java.Locatable
CompileException
with the given message and this
object's location.throwCompileException
in interface Java.Locatable
message
- The message to reportCompileException
Copyright © 2001–2019. All rights reserved.