Class Location

  • All Implemented Interfaces:
    java.io.Serializable

    public class Location
    extends java.lang.Object
    implements java.io.Serializable

    An object that represents the Location of a tag or attribute of a tag in a View Declaration Language file.

    Since:
    2.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Location​(java.lang.String path, int line, int column)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumn()
      Return the estimated character column.
      int getLine()
      Return the line number in the page for this location.
      java.lang.String getPath()
      Return the file path to the page represented by this location.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Location

        public Location​(java.lang.String path,
                        int line,
                        int column)
    • Method Detail

      • getColumn

        public int getColumn()

        Return the estimated character column.

        Returns:
        the column
      • getLine

        public int getLine()

        Return the line number in the page for this location.

        Returns:
        the line number
      • getPath

        public java.lang.String getPath()

        Return the file path to the page represented by this location.

        Returns:
        the file path
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object