net.sf.jsefa.common.lowlevel
Class InputPosition

java.lang.Object
  extended by net.sf.jsefa.common.lowlevel.InputPosition
All Implemented Interfaces:
Serializable

public final class InputPosition
extends Object
implements Serializable

Encapsulates information about the current position within the input stream.

Author:
Norman Lahme-Huetig
See Also:
Serialized Form

Constructor Summary
InputPosition(int lineNumber, int columnNumber)
          Constructs a new InputPosition.
 
Method Summary
 int getColumnNumber()
          Returns the number of the current column within the current line within the input stream (beginning with 1).
 int getLineNumber()
          Returns the number of the current line within the input stream (beginning with 1).
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputPosition

public InputPosition(int lineNumber,
                     int columnNumber)
Constructs a new InputPosition.

Parameters:
lineNumber - the line number
columnNumber - the column number
Method Detail

getLineNumber

public int getLineNumber()
Returns the number of the current line within the input stream (beginning with 1).

Returns:
the current line number.

getColumnNumber

public int getColumnNumber()
Returns the number of the current column within the current line within the input stream (beginning with 1).

Returns:
the current column number.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2014. All rights reserved.