public abstract static class Java.Located extends java.lang.Object implements Java.Locatable
Java.Locatable
.Modifier and Type | Field and Description |
---|---|
private Location |
location |
static Java.Located |
NOWHERE
Indication of 'no' or 'unknown' location.
|
Modifier | Constructor and Description |
---|---|
protected |
Located(Location location) |
Modifier and Type | Method and Description |
---|---|
Location |
getLocation() |
void |
throwCompileException(java.lang.String message)
Throw a
CompileException with the given message and this
object's location. |
public static final Java.Located NOWHERE
private final Location location
protected Located(Location location)
public Location getLocation()
getLocation
in interface Java.Locatable
public void throwCompileException(java.lang.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