Interface CAstSourcePositionMap.Position

All Superinterfaces:
Comparable<IMethod.SourcePosition>, IMethod.SourcePosition
All Known Subinterfaces:
IncludedPosition
All Known Implementing Classes:
AbstractSourcePosition, JdtPosition, LineNumberPosition, RangePosition
Enclosing interface:
CAstSourcePositionMap

public static interface CAstSourcePositionMap.Position extends IMethod.SourcePosition
This interface encapsulates the source position of an ast node in its source file. Since different parsers record different degrees of source position information, any client of these Positions must be prepared to expect -1---symbolizing no information---to be returned by some or all of its accessors.
Author:
Julian Dolby (dolby@us.ibm.com)
  • Method Details

    • prettyPrint

      default String prettyPrint()
      Pretty print a source position
      Returns:
      pretty-printed string representation
    • getURL

      URL getURL()
    • getReader

      Reader getReader() throws IOException
      Throws:
      IOException