Class IrStatementPattern


public class IrStatementPattern extends IrTripleLike
Textual IR node for a simple triple pattern line.
  • Constructor Details

    • IrStatementPattern

      public IrStatementPattern(Var subject, Var predicate, Var object, boolean newScope)
  • Method Details

    • getPredicate

      public Var getPredicate()
    • getPredicateOrPathText

      public String getPredicateOrPathText(TupleExprIRRenderer r)
      Description copied from class: IrTripleLike
      Render the predicate or path as compact textual IR suitable for inclusion in a property path. For simple statement patterns this typically returns a compact IRI (possibly prefixed); for path triples it returns the already-rendered path text. Implementations should return null when no safe textual representation exists (e.g., non-constant predicate in a statement pattern).
      Specified by:
      getPredicateOrPathText in class IrTripleLike
    • print

      public void print(IrPrinter p)
      Description copied from class: IrNode
      Default no-op printing; concrete nodes override.
      Specified by:
      print in class IrNode
    • toString

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

      public Set<Var> getVars()
      Description copied from class: IrNode
      Collect variables referenced by this node and all of its children (if any). Default implementation returns an empty set; container and triple-like nodes override to include their own Vars and recurse into child nodes.
      Overrides:
      getVars in class IrTripleLike