Class Position

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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