java.lang.Object
org.apache.jena.sparql.expr.ExprNode
org.apache.jena.sparql.expr.ExprFunction
org.apache.jena.sparql.expr.ExprFunctionOp
org.apache.jena.sparql.expr.E_NotExists
- All Implemented Interfaces:
Expr
-
Field Summary
Fields inherited from interface org.apache.jena.sparql.expr.Expr
CMP_EQUAL, CMP_GREATER, CMP_INDETERMINATE, CMP_LESS, CMP_UNEQUAL, NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyNodeTransform
(NodeTransform nodeTransform) Rewrite, applying a node->node transformationcopySubstitute
(Binding binding) Deep copy with substitutionboolean
General equality operation - consider this to be 'protected'int
hashCode()
Expr
are used in both syntax and algebra.Methods inherited from class org.apache.jena.sparql.expr.ExprFunctionOp
apply, eval, getArg, getElement, getGraphPattern, isGraphPattern, numArgs, visit
Methods inherited from class org.apache.jena.sparql.expr.ExprFunction
getArgs, getFunction, getFunctionIRI, getFunctionName, getFunctionPrintName, getFunctionSymbol, getOpName, isFunction
Methods inherited from class org.apache.jena.sparql.expr.ExprNode
asVar, deepCopy, equals, equalsBySyntax, getConstant, getExpr, getExprVar, getVarName, getVarsMentioned, isConstant, isExpr, isSatisfied, isVariable, toString
-
Constructor Details
-
E_NotExists
-
E_NotExists
-
E_NotExists
-
-
Method Details
-
copySubstitute
Description copied from interface:Expr
Deep copy with substitution- Specified by:
copySubstitute
in interfaceExpr
- Specified by:
copySubstitute
in classExprNode
-
applyNodeTransform
Description copied from interface:Expr
Rewrite, applying a node->node transformation- Specified by:
applyNodeTransform
in interfaceExpr
- Specified by:
applyNodeTransform
in classExprNode
-
hashCode
public int hashCode()Description copied from interface:Expr
Expr
are used in both syntax and algebra. There is no syntax to algebra translation step because the parser uses operator precedence to build the right evaluation structure directly.The exceptions to this are the
NOT EXISTS
andEXISTS
expressions which involve a query pattern. As a result there are different ways in syntax to produce the same algebra form.Two
Expr
are considered equal if they are equal as algebra expressions.hashCode
andequals
must implement that.There is also
equalsBySyntax
. Because two different syntax forms can yield the same algebra, but two different algebra forms must be different syntax,equalsBySyntax
impliesequals
(by algebra).Hence, different
hashCode
=> notequalsBySyntax
.- Specified by:
hashCode
in interfaceExpr
- Overrides:
hashCode
in classExprFunction
-
equals
Description copied from interface:Expr
General equality operation - consider this to be 'protected'- Specified by:
equals
in interfaceExpr
- Overrides:
equals
in classExprFunction
-
copy
- Specified by:
copy
in classExprFunctionOp
-
copy
- Specified by:
copy
in classExprFunctionOp
-