Class Operation<T extends Operation<T>>
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<T>
-
- 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
abstract class Operation<T extends Operation<T>> extends Expression<T>
A SPARQL Operation. Differs from aFunctionin the way operators and arguments are printed.
-
-
Field Summary
Fields Modifier and Type Field Description protected intoperandLimit-
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.constraint.Expression
operator
-
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
elements
-
-
Constructor Summary
Constructors Constructor Description Operation(SparqlOperator operator)Operation(SparqlOperator operator, int operandLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) TaddOperand(Operand operand)java.lang.StringgetQueryString()protected booleanisAtOperatorLimit()protected booleanisBelowOperatorLimit()-
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
-
-
-
-
Constructor Detail
-
Operation
Operation(SparqlOperator operator)
-
Operation
Operation(SparqlOperator operator, int operandLimit)
-
-
Method Detail
-
getQueryString
public java.lang.String 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()
-
-