Class Where


  • public final class Where
    extends java.lang.Object
    The Where class describes a location in a source file.
    • Method Detail

      • nowhere

        public static Where nowhere()
      • token

        public static Where token​(org.antlr.runtime.Token token)
      • commonTree

        public static final Where commonTree​(org.antlr.runtime.tree.CommonTree tree)
      • getUnit

        public java.lang.String getUnit()
        Returns the name of the source file (unit).
        Returns:
        Source file (unit) name.
      • getLine

        public int getLine()
        Returns the line number.
        Returns:
        Line number.
      • getPosition

        public int getPosition()
        Returns the position in the line.
        Returns:
        Position in the line.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object