| java.lang.Object com.go.tea.compiler.SourceInfo
All known Subclasses: com.go.tea.compiler.SourceDetailedInfo,
SourceInfo | public class SourceInfo implements Cloneable,java.io.Serializable(Code) | | Provides information on where an object (like a token) appeared in the
the source file.
author: Brian S O'Neill version: 17 , 00/12/14 |
Constructor Summary | |
public | SourceInfo(int line, int startPos, int endPos) |
SourceInfo | public SourceInfo(int line, int startPos, int endPos)(Code) | | |
getDetailPosition | public int getDetailPosition()(Code) | | A character position detailing this object. Usually is the same as the start position. |
getEndPosition | public int getEndPosition()(Code) | | The character position in the source file where this object ended. The first position of the source file is zero. |
getLine | public int getLine()(Code) | | The line in the source file. The first line is one. |
getStartPosition | public int getStartPosition()(Code) | | The character position in the source file where this object started. The first position of the source file is zero. |
setEndPosition | public SourceInfo setEndPosition(int endPos)(Code) | | A clone of this SourceInfo, but with a different end position |
setEndPosition | public SourceInfo setEndPosition(SourceInfo info)(Code) | | A clone of this SourceInfo, but with a different end position |
|
|