Class Operation<T extends Operation<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>
org.eclipse.rdf4j.sparqlbuilder.constraint.Operation<T>
- Type Parameters:
T- The type of operation. Used to support fluency.
- All Implemented Interfaces:
Operand,Assignable,Groupable,Orderable,QueryElement
- Direct Known Subclasses:
BinaryOperation,ConnectiveOperation,UnaryOperation
A SPARQL Operation. Differs from a
Function in the way operators and arguments are printed.-
Field Summary
FieldsFields inherited from class org.eclipse.rdf4j.sparqlbuilder.constraint.Expression
operatorFields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
elements -
Constructor Summary
ConstructorsConstructorDescriptionOperation(SparqlOperator operator) Operation(SparqlOperator operator, int operandLimit) -
Method Summary
Modifier and TypeMethodDescription(package private) TaddOperand(Operand operand) protected booleanprotected booleanMethods inherited from class org.eclipse.rdf4j.sparqlbuilder.constraint.Expression
addOperand, getOperand, parenthesize, parenthesizeMethods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection
printBodyIfEmpty, printNameIfEmpty, resetWrapperMethod, setOperatorName, setOperatorName, setWrapperMethodMethods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
addElements, addElements, isEmptyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.sparqlbuilder.core.Assignable
as
-
Field Details
-
operandLimit
protected int operandLimit
-
-
Constructor Details
-
Operation
Operation(SparqlOperator operator) -
Operation
Operation(SparqlOperator operator, int operandLimit)
-
-
Method Details
-
addOperand
-
getQueryString
- Specified by:
getQueryStringin interfaceQueryElement- Overrides:
getQueryStringin classStandardQueryElementCollection<Operand>- Returns:
- the String representing the SPARQL syntax of this element
-
isBelowOperatorLimit
protected boolean isBelowOperatorLimit() -
isAtOperatorLimit
protected boolean isAtOperatorLimit()
-