| java.util.ArrayList org.incava.text.LineMapping
LineMapping | public class LineMapping extends ArrayList (Code) | | Converts from 0-indexed string positions to line:column values. Lines and
columns are 1-indexed, matching the Java parser.
|
Inner Class :public class PositionToLocation | |
Method Summary | |
public Location | getLocation(int pos) Converts the string position to a line:column location. | public Location[] | getLocations(Point pos) Converts the string position to a line:column start and end location. | public Location[] | getLocations(int startPos, int endPos) Converts the string position to a line:column start and end location. |
LineMapping | public LineMapping(String text, int startLine, int startColumn)(Code) | | |
getLocation | public Location getLocation(int pos)(Code) | | Converts the string position to a line:column location.
|
getLocations | public Location[] getLocations(Point pos)(Code) | | Converts the string position to a line:column start and end location.
|
getLocations | public Location[] getLocations(int startPos, int endPos)(Code) | | Converts the string position to a line:column start and end location.
|
|
|