    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class com.jclark.xml.tok.Position

    java.lang.Object
       |
       +----com.jclark.xml.tok.Position

public final class Position
extends Object
implements Cloneable

Represents a position in an entity. A position can be modified by `Encoding.movePosition`.

See Also:
  movePosition

##

Position()
  Creates a position for the start of an entity: the line number is 1 and the column number is 0.

##

clone()
  Returns a copy of this position.
getColumnNumber()
  Returns the column number.
getLineNumber()
  Returns the line number.

##

Position

     public Position()

  Creates a position for the start of an entity: the line number is 1 and the column number is 0.

##

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 Object clone()

  Returns a copy of this position.

  Overrides:
    clone in class Object

    All Packages  Class Hierarchy  This Package  Previous  Next  Index