org.jboss.dna.common.text
Class TokenStream.Position

java.lang.Object
  extended by org.jboss.dna.common.text.TokenStream.Position
Enclosing class:
TokenStream

@Immutable
public static final class TokenStream.Position
extends Object

A class that represents the position of a particular character in terms of the lines and columns of a character sequence.


Method Summary
 int getColumn()
          Get the 1-based column number of the character.
 int getLine()
          Get the 1-based line number of the character.
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getColumn

public int getColumn()
Get the 1-based column number of the character.

Returns:
the column number; always positive

getLine

public int getLine()
Get the 1-based line number of the character.

Returns:
the line number; always positive

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.