public abstract class Location extends Object
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
Location |
at(int line,
int column) |
abstract String |
base()
Returns the base of this location; typically a directory or .jar file.
|
abstract int |
column()
Returns the column on the line of this location, or -1 for no specific column.
|
static Location |
get(String path) |
static Location |
get(String base,
String path) |
abstract int |
line()
Returns the line number of this location, or -1 for no specific line number.
|
abstract String |
path()
Returns the path to this location relative to
base() . |
String |
toString() |
Location |
withoutBase()
Returns a copy of this location with an empty base.
|
public Location at(int line, int column)
public Location withoutBase()
public abstract String base()
public abstract int line()
public abstract int column()
Copyright © 2013–2016 Square, Inc.. All rights reserved.