Interface Position

  • All Known Implementing Classes:
    Char

    public interface Position
    Describes a position in a file or a stream based on lines and the character position within the line.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Position UNKNOWN
      Represents an unknown position for warnings and errors which cannot be associated with a defined position.
    • Field Detail

      • UNKNOWN

        static final Position UNKNOWN
        Represents an unknown position for warnings and errors which cannot be associated with a defined position.
    • Method Detail

      • getPos

        int getPos()
        Returns the character position within the line of this position
        Returns:
        the one-based character position of this