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 intprivate final URLprivate final intprivate final intprivate final intFields 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 TypeMethodDescriptionintintgetLine()One-based line number of this feature in its top-level containerintThe offset of the feature in its top-level containerintThe length of the feature's text in its top-level containerbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
hasLocationin interfaceILocationInfo
-
getOffset
public int getOffset()Description copied from interface:ILocationInfoThe offset of the feature in its top-level container- Specified by:
getOffsetin interfaceILocationInfo
-
getTextLength
public int getTextLength()Description copied from interface:ILocationInfoThe length of the feature's text in its top-level container- Specified by:
getTextLengthin interfaceILocationInfo
-
getLine
public int getLine()Description copied from interface:ILocationInfoOne-based line number of this feature in its top-level container- Specified by:
getLinein interfaceILocationInfo
-
getColumn
public int getColumn()- Specified by:
getColumnin interfaceILocationInfo
-
getFileUrl
- Specified by:
getFileUrlin interfaceILocationInfo
-