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
operator
Fields 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) T
addOperand
(Operand operand) protected boolean
protected boolean
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.constraint.Expression
addOperand, getOperand, parenthesize, parenthesize
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection
printBodyIfEmpty, printNameIfEmpty, resetWrapperMethod, setOperatorName, setOperatorName, setWrapperMethod
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
addElements, addElements, isEmpty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getQueryString
in interfaceQueryElement
- Overrides:
getQueryString
in classStandardQueryElementCollection<Operand>
- Returns:
- the String representing the SPARQL syntax of this element
-
isBelowOperatorLimit
protected boolean isBelowOperatorLimit() -
isAtOperatorLimit
protected boolean isAtOperatorLimit()
-