Class Expression<T extends Expression<T>>

Type Parameters:
T - the type of Expression (ie, Function or Operation). Used to support fluency
All Implemented Interfaces:
Operand, Assignable, Groupable, Orderable, QueryElement
Direct Known Subclasses:
Aggregate, CustomFunction, In, NotIn

public abstract class Expression<T extends Expression<T>> extends StandardQueryElementCollection<Operand> implements Operand, Orderable, Groupable, Assignable
A SPARQL expression. Used by filters, having clauses, order and group by clauses, assignments, and as arguments to other expressions.
See Also:
  • Field Details

  • Method Details

    • parenthesize

      public T parenthesize()
      Indicate that this expression should be wrapped in parentheses when converted to a query string
      Returns:
      this
    • parenthesize

      public T parenthesize(boolean parenthesize)
      Indicate if this expression should be wrapped in parentheses when converted to a query string
      Parameters:
      parenthesize -
      Returns:
      this