|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.javascript.rhino.SourcePosition<T>
public abstract class SourcePosition<T>
Represents a position in some piece of source code, with an associated item of type T found at that position.
Constructor Summary | |
---|---|
SourcePosition()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourcePosition()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |