Interface Position


public interface Position
Instances of this class model are used to model source code positions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Position
    An empty position instance; this can be used to model synthetic program elements which are not defined in any input file.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    col()
    The column number associated with this position.
    int
    The line number associated with this position.
    The input file to which this position refers to.
  • Field Details

    • NO_POSITION

      static final Position NO_POSITION
      An empty position instance; this can be used to model synthetic program elements which are not defined in any input file.
  • Method Details

    • path

      Path path()
      The input file to which this position refers to.
      Returns:
      The input file to which this position refers to.
    • line

      int line()
      The line number associated with this position.
      Returns:
      The line number associated with this position.
    • col

      int col()
      The column number associated with this position.
      Returns:
      The column number associated with this position.