Class Expression<T extends Expression<T>>
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<Operand>
org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection<Operand>
org.eclipse.rdf4j.sparqlbuilder.constraint.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 Summary
FieldsFields inherited from class QueryElementCollection
elements -
Method Summary
Modifier and TypeMethodDescriptionIndicate that this expression should be wrapped in parentheses when converted to a query stringparenthesize(boolean parenthesize) Indicate if this expression should be wrapped in parentheses when converted to a query stringMethods inherited from class StandardQueryElementCollection
getQueryString, printBodyIfEmpty, printNameIfEmpty, resetWrapperMethod, setOperatorName, setOperatorName, setWrapperMethodModifier and TypeMethodDescriptionprotected voidprintBodyIfEmpty(boolean printBodyIfEmpty) protected voidprintNameIfEmpty(boolean printNameIfEmpty) protected voidprotected voidsetOperatorName(String operatorName) protected voidsetOperatorName(String operatorName, boolean pad) protected voidsetWrapperMethod(Function<String, String> wrapperMethod) Methods inherited from class QueryElementCollection
addElements, addElements, isEmptyModifier and TypeMethodDescriptionprotected <O> voidaddElements(Function<? super O, ? extends Operand> mapper, O... os) protected voidaddElements(Operand... queryElements) booleanisEmpty()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Assignable
as
-
Field Details
-
operator
-
-
Method Details
-
parenthesize
Indicate that this expression should be wrapped in parentheses when converted to a query string- Returns:
- this
-
parenthesize
Indicate if this expression should be wrapped in parentheses when converted to a query string- Parameters:
parenthesize-- Returns:
- this
-