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 intgetColumn()URLgetFileUrl()intgetLine()One-based line number of this feature in its top-level containerintgetOffset()The offset of the feature in its top-level containerintgetTextLength()The length of the feature's text in its top-level containerbooleanhasLocation()-
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:
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
public URL getFileUrl()
- Specified by:
getFileUrlin interfaceILocationInfo
-
-