public class PositionInfo extends Object
Modifier and Type | Field and Description |
---|---|
(package private) Position |
endPos |
(package private) String |
fileName |
protected String |
parentClass |
(package private) Position |
relPos |
(package private) Position |
startPos |
static PositionInfo |
UNDEFINED |
Modifier | Constructor and Description |
---|---|
private |
PositionInfo() |
|
PositionInfo(Position relPos,
Position startPos,
Position endPos) |
|
PositionInfo(Position relPos,
Position startPos,
Position endPos,
String fileName) |
Modifier and Type | Method and Description |
---|---|
Position |
getEndPosition() |
String |
getFileName() |
String |
getParentClass()
get the class the statement originates from
|
Position |
getRelativePosition() |
Position |
getStartPosition() |
protected void |
setParentClass(String s)
this violates immutability, but the method is only called
right after the object is created...
|
private static String |
simplifyPath(String path)
If the path contains the substring "/../", then this method tries to
simplify the path by removing this substring and the preceeding directory name
to that substring.
|
String |
toString() |
final Position relPos
final Position startPos
final Position endPos
String fileName
protected String parentClass
public static final PositionInfo UNDEFINED
private static String simplifyPath(String path)
public Position getRelativePosition()
public Position getStartPosition()
public Position getEndPosition()
public String getFileName()
protected void setParentClass(String s)
public String getParentClass()