Class Location

java.lang.Object
ch.tocco.nice2.conditionals.api.tree.Location
All Implemented Interfaces:
Serializable

public final class Location extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • Location

      public Location(String source, int line, int charInLine)
    • Location

      public Location(Location location)
  • Method Details

    • unknownLocation

      public static Location unknownLocation(String source)
    • unknownLocation

      public static Location unknownLocation()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(boolean omitSource)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getSource

      public String getSource()
    • getLine

      public int getLine()
    • getCharInLine

      public int getCharInLine()
    • isUnknown

      public boolean isUnknown()
    • leading

      public Location leading(Location that)
    • trailing

      public Location trailing(Location that)
    • find

      public int find(String text)