com.meyling.principia.io
Class Position
java.lang.Object
|
+--com.meyling.principia.io.Position
- public class Position
- extends Object
Class for remembering parsing positions.
- Version:
- $Revision 0.00.50$
- Author:
- Michael Meyling
|
Field Summary |
private int |
begin
position at begin |
private int |
end
position at end |
|
Constructor Summary |
Position(int begin,
int end)
Constructs an marker for begin and end position. |
|
Method Summary |
int |
getBegin()
Get start position. |
int |
getEnd()
Get end position. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
begin
private final int begin
- position at begin
end
private final int end
- position at end
Position
public Position(int begin,
int end)
- Constructs an marker for begin and end position.
- Parameters:
begin - start positionend - end position
getBegin
public final int getBegin()
- Get start position.
- Returns:
- start position
getEnd
public final int getEnd()
- Get end position.
- Returns:
- end position