Class CAstSourcePositionRecorder
java.lang.Object
com.ibm.wala.cast.tree.impl.CAstSourcePositionRecorder
- All Implemented Interfaces:
CAstSourcePositionMap
-
Nested Class Summary
Nested classes/interfaces inherited from interface CAstSourcePositionMap
CAstSourcePositionMap.Position -
Field Summary
Fields inherited from interface CAstSourcePositionMap
NO_INFORMATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(CAstSourcePositionMap other) Returns an iterator of all CAstNodes for which this map contains source mapping information.Returns the position of a given node in its source file, or null if the position is not known or does not exist.Returns an ordered set of all positions in this map.voidsetPosition(CAstNode n, int fl, int fc, int ll, int lc, String url, String file) voidsetPosition(CAstNode n, int fl, int fc, int ll, int lc, URL url, URL file) voidsetPosition(CAstNode n, int lineNumber, String url, String file) voidsetPosition(CAstNode n, int lineNumber, URL url, URL file) void
-
Constructor Details
-
CAstSourcePositionRecorder
public CAstSourcePositionRecorder()
-
-
Method Details
-
getPosition
Description copied from interface:CAstSourcePositionMapReturns the position of a given node in its source file, or null if the position is not known or does not exist.- Specified by:
getPositionin interfaceCAstSourcePositionMap
-
getMappedNodes
Description copied from interface:CAstSourcePositionMapReturns an iterator of all CAstNodes for which this map contains source mapping information.- Specified by:
getMappedNodesin interfaceCAstSourcePositionMap
-
setPosition
-
setPosition
public void setPosition(CAstNode n, int fl, int fc, int ll, int lc, String url, String file) throws MalformedURLException - Throws:
MalformedURLException
-
setPosition
-
setPosition
public void setPosition(CAstNode n, int lineNumber, String url, String file) throws MalformedURLException - Throws:
MalformedURLException
-
setPosition
-
addAll
-
positions
Description copied from interface:CAstSourcePositionMapReturns an ordered set of all positions in this map.- Specified by:
positionsin interfaceCAstSourcePositionMap
-