Top Description Fields Constructors Methods
org.jparsec

public Class SourceLocation

extends Object
Class Inheritance
Imports
org.jparsec.error.Location

Represents a location inside the source. Not thread safe.
Since
3.1

Field Summary

Modifier and TypeField and Description
private final int
private Location
location

References Deprecated Location is deprecated or references (maybe indirectly) at least one deprecated element.
private final SourceLocator

Constructor Summary

AccessConstructor and Description
pack-priv
SourceLocation(int index, SourceLocator locator)

Method Summary

Modifier and TypeMethod and Description
public int
getColumn()

Returns the column number of this location.

public int
getIndex()

Returns the 0-based index within the source.

public int
getLine()

Returns the line number of this location.

private Location
getLocation()
References Deprecated Location is deprecated or references (maybe indirectly) at least one deprecated element.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
private final int index
locationback to summary
private Location location

References Deprecated

Location is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

locatorback to summary
private final SourceLocator locator

Constructor Detail

SourceLocationback to summary
pack-priv SourceLocation(int index, SourceLocator locator)

Method Detail

getColumnback to summary
public int getColumn()

Returns the column number of this location. Because this method takes amortized log(n) time, it's typically a good idea to avoid calling it until the entire source has been successfully parsed.

getIndexback to summary
public int getIndex()

Returns the 0-based index within the source.

getLineback to summary
public int getLine()

Returns the line number of this location. Because this method takes amortized log(n) time, it's typically a good idea to avoid calling it until the entire source has been successfully parsed.

getLocationback to summary
private Location getLocation()

References Deprecated

Location is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.