public abstract class SourcePosition<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
endCharno
The character position on the ending line.
|
private int |
endLineno
The ending line number.
|
private T |
item
The (well typed) item found at the source position.
|
private int |
startCharno
The character position on the starting line.
|
private int |
startLineno
The starting line number.
|
Constructor and Description |
---|
SourcePosition() |
Modifier and Type | Method and Description |
---|---|
int |
getEndLine()
Returns the ending line number of this position.
|
T |
getItem()
Returns the item found at this source position.
|
int |
getPositionOnEndLine()
Returns the character position on the ending line.
|
int |
getPositionOnStartLine()
Returns the character position on the starting line.
|
int |
getStartLine()
Returns the starting line number of this position.
|
void |
setItem(T item)
Sets the item that this source position references.
|
void |
setPositionInformation(int startLineno,
int startCharno,
int endLineno,
int endCharno)
Sets the position information contained in this source position.
|
private T item
private int startLineno
private int startCharno
private int endLineno
private int endCharno
public void setItem(T item)
public void setPositionInformation(int startLineno, int startCharno, int endLineno, int endCharno)
public T getItem()
public int getStartLine()
public int getPositionOnStartLine()
public int getEndLine()
public int getPositionOnEndLine()