Package gw.lang.reflect
Class LocationInfo
java.lang.Object
gw.lang.reflect.LocationInfo
- All Implemented Interfaces:
ILocationInfo
Representation of a particular location in a particular source file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final URL
private final int
private final int
private final int
Fields inherited from interface gw.lang.reflect.ILocationInfo
EMPTY
-
Constructor Summary
ConstructorsConstructorDescriptionLocationInfo
(int offset, int textLength, int line, int column, URL fileUrl) LocationInfo
(int line, int column, URL fileUrl) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getLine()
One-based line number of this feature in its top-level containerint
The offset of the feature in its top-level containerint
The length of the feature's text in its top-level containerboolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gw.lang.reflect.ILocationInfo
contains
-
Field Details
-
_line
private final int _line -
_column
private final int _column -
_offset
private final int _offset -
_textLength
private final int _textLength -
_fileUrl
-
-
Constructor Details
-
LocationInfo
-
LocationInfo
-
-
Method Details
-
hasLocation
public boolean hasLocation()- Specified by:
hasLocation
in interfaceILocationInfo
-
getOffset
public int getOffset()Description copied from interface:ILocationInfo
The offset of the feature in its top-level container- Specified by:
getOffset
in interfaceILocationInfo
-
getTextLength
public int getTextLength()Description copied from interface:ILocationInfo
The length of the feature's text in its top-level container- Specified by:
getTextLength
in interfaceILocationInfo
-
getLine
public int getLine()Description copied from interface:ILocationInfo
One-based line number of this feature in its top-level container- Specified by:
getLine
in interfaceILocationInfo
-
getColumn
public int getColumn()- Specified by:
getColumn
in interfaceILocationInfo
-
getFileUrl
- Specified by:
getFileUrl
in interfaceILocationInfo
-