Class Position

java.lang.Object
org.apache.juneau.parser.Position

public class Position extends Object
Identifies a position in a reader or input stream.
See Also:
  • Constructor Details

    • Position

      public Position(int line, int column)
      Constructor.
      Parameters:
      line - The current line number.
      column - The current column number.
    • Position

      public Position(int position)
      Constructor.
      Parameters:
      position - The current byte position.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLine

      public int getLine()
      Returns the current line.
      Returns:
      The current line, or -1 if not specified.
    • getColumn

      public int getColumn()
      Returns the current column.
      Returns:
      The current column, or -1 if not specified.
    • getPosition

      public int getPosition()
      Returns the current byte position.
      Returns:
      The current byte position, or -1 if not specified.