Class LocationInfo

  • All Implemented Interfaces:
    ILocationInfo

    public class LocationInfo
    extends java.lang.Object
    implements ILocationInfo
    Representation of a particular location in a particular source file.
    • Constructor Summary

      Constructors 
      Constructor Description
      LocationInfo​(int offset, int textLength, int line, int column, java.net.URL fileUrl)  
      LocationInfo​(int line, int column, java.net.URL fileUrl)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumn()  
      java.net.URL getFileUrl()  
      int getLine()
      One-based line number of this feature in its top-level container
      int getOffset()
      The offset of the feature in its top-level container
      int getTextLength()
      The length of the feature's text in its top-level container
      boolean hasLocation()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _line

        private final int _line
      • _column

        private final int _column
      • _offset

        private final int _offset
      • _textLength

        private final int _textLength
      • _fileUrl

        private final java.net.URL _fileUrl
    • Constructor Detail

      • LocationInfo

        public LocationInfo​(int line,
                            int column,
                            java.net.URL fileUrl)
      • LocationInfo

        public LocationInfo​(int offset,
                            int textLength,
                            int line,
                            int column,
                            java.net.URL fileUrl)