Interface Locatable

All Known Implementing Classes:
Expression

public interface Locatable
This interface defines the methods of all locatable object. A locatable object is an object that have a location in a file. It is used by the parser to indicate the place an parsed object, i.e., symbols, expressions, actions, etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the location of the object.
    void
    setBegin​(fr.uga.pddl4j.parser.lexer.Token begin)
    Sets the begin line and column of the expression from a specified token.
    void
    setEnd​(fr.uga.pddl4j.parser.lexer.Token end)
    Sets the end line and column of the expression from a specified token.
  • Method Details

    • getLocation

      Location getLocation()
      Returns the location of the object.
      Returns:
      the location of the object.
      See Also:
      Location
    • setBegin

      void setBegin(fr.uga.pddl4j.parser.lexer.Token begin)
      Sets the begin line and column of the expression from a specified token.
      Parameters:
      begin - the first token of the expression.
    • setEnd

      void setEnd(fr.uga.pddl4j.parser.lexer.Token end)
      Sets the end line and column of the expression from a specified token.
      Parameters:
      end - the last token of the expression.