|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 | |
|---|---|
static interface |
CAstSourcePositionMap.Position
This interface encapsulates the source position of an ast node in its source file. |
| Method Summary | |
|---|---|
java.util.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 |
|---|
CAstSourcePositionMap.Position getPosition(CAstNode n)
java.util.Iterator<CAstNode> getMappedNodes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||