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_Exists
- 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
Constructors -
Method Summary
Methods inherited from class org.apache.jena.sparql.expr.ExprFunctionOp
apply, applyNodeTransform, copySubstitute, eval, getArg, getElement, getGraphPattern, isGraphPattern, numArgs, visitMethods inherited from class org.apache.jena.sparql.expr.ExprFunction
getArgs, getFunction, getFunctionIRI, getFunctionName, getFunctionPrintName, getFunctionSymbol, getOpName, isFunctionMethods 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_Exists
-
E_Exists
-
E_Exists
-
-
Method Details
-
hashCode
public int hashCode()Description copied from interface:ExprExprare 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 EXISTSandEXISTSexpressions which involve a query pattern. As a result there are different ways in syntax to produce the same algebra form.Two
Exprare considered equal if they are equal as algebra expressions.hashCodeandequalsmust 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,equalsBySyntaximpliesequals(by algebra).Hence, different
hashCode=> notequalsBySyntax.- Specified by:
hashCodein interfaceExpr- Overrides:
hashCodein classExprFunction
-
equals
Description copied from interface:ExprGeneral equality operation - consider this to be 'protected'- Specified by:
equalsin interfaceExpr- Overrides:
equalsin classExprFunction
-
copy
- Specified by:
copyin classExprFunctionOp
-
copy
- Specified by:
copyin classExprFunctionOp
-