Package com.thaiopensource.xml.tok
Class Position
- java.lang.Object
-
- com.thaiopensource.xml.tok.Position
-
- All Implemented Interfaces:
java.lang.Cloneable
public final class Position extends java.lang.Object implements java.lang.CloneableRepresents a position in an entity. A position can be modified byTokenizer.movePosition.
-
-
Constructor Summary
Constructors Constructor Description Position()Creates a position for the start of an entity: the line number is 1 and the column number is 0.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns a copy of this position.intgetColumnNumber()Returns the column number.intgetLineNumber()Returns the line number.
-
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
Returns the line number. The first line number is 1.
-
getColumnNumber
public int getColumnNumber()
Returns the column number. The first column number is 0. A tab character is not treated specially.
-
clone
public java.lang.Object clone()
Returns a copy of this position.- Overrides:
clonein classjava.lang.Object
-
-