Package com.ibm.wala.cast.tree
Interface CAstSourcePositionMap
-
- All Known Implementing Classes:
CAstSourcePositionRecorder
public interface CAstSourcePositionMap
The assumption is that a typical CAst is derived from some kind of textual source file, for which it makes sense to record source position in terms of line and column numbers. This interface encapsulates a mapping from CAstNodes of the an ast to such source positions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CAstSourcePositionMap.Position
This interface encapsulates the source position of an ast node in its source file.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<CAstNode>
getMappedNodes()
Returns an iterator of all CAstNodes for which this map contains source mapping information.CAstSourcePositionMap.Position
getPosition(CAstNode n)
Returns the position of a given node in its source file, or null if the position is not known or does not exist.
-
-
-
Method Detail
-
getPosition
CAstSourcePositionMap.Position getPosition(CAstNode n)
Returns the position of a given node in its source file, or null if the position is not known or does not exist.
-
-