Package gw.lang.reflect
Class LocationInfo
- java.lang.Object
-
- gw.lang.reflect.LocationInfo
-
- All Implemented Interfaces:
ILocationInfo
public class LocationInfo extends Object implements ILocationInfo
Representation of a particular location in a particular source file.
-
-
Field Summary
-
Fields inherited from interface gw.lang.reflect.ILocationInfo
EMPTY
-
-
Constructor Summary
Constructors Constructor Description LocationInfo(int offset, int textLength, int line, int column, URL fileUrl)
LocationInfo(int line, int column, URL fileUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
URL
getFileUrl()
int
getLine()
One-based line number of this feature in its top-level containerint
getOffset()
The offset of the feature in its top-level containerint
getTextLength()
The length of the feature's text in its top-level containerboolean
hasLocation()
-
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
-
-
-
-
Method Detail
-
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
public URL getFileUrl()
- Specified by:
getFileUrl
in interfaceILocationInfo
-
-