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
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 Summary
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.ibm.wala.classLoader.IMethod.SourcePosition
getFirstCol, getFirstLine, getFirstOffset, getLastCol, getLastLine, getLastOffset
-
Method Details
-
prettyPrint
Pretty print a source position- Returns:
- pretty-printed string representation
-
getURL
URL getURL() -
getReader
- Throws:
IOException
-