Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## convert.xml.tok
Class Position

    java.lang.Object
      convert.xml.tok.Position

All Implemented Interfaces:
  java.lang.Cloneable

    public final class Position

extends java.lang.Object
implements java.lang.Cloneable

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

See Also:
  `Tokenizer.movePosition(char[], int, int, convert.xml.tok.Position)`

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

Method Summary
`java.lang.Object` | `clone()` Returns a copy of this position.
`int` | `getColumnNumber()` Returns the column number.
`int` | `getLineNumber()` Returns the line number.

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Position

    public Position()

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

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:
    `clone` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD