|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.expr.ExprNode
public abstract class ExprNode
A node that is a constraint expression that can be evaluated An Expr is already a Constraint - ExprNode is the base implementation of all Expr classes that provides the Constraint machinary.
| Field Summary |
|---|
| Fields inherited from interface com.hp.hpl.jena.sparql.expr.Expr |
|---|
CMP_EQUAL, CMP_GREATER, CMP_INDETERMINATE, CMP_LESS, CMP_UNEQUAL |
| Constructor Summary | |
|---|---|
ExprNode()
|
|
| Method Summary | |
|---|---|
abstract Expr |
applyNodeTransform(NodeTransform transform)
Rewrite, applying a node->node transformation |
Var |
asVar()
Convert to a Var variable. |
Expr |
copySubstitute(Binding binding)
Deep copy with substitution |
abstract Expr |
copySubstitute(Binding binding,
boolean foldConstants)
|
Expr |
deepCopy()
Deep copy |
abstract boolean |
equals(Object other)
|
abstract NodeValue |
eval(Binding binding,
FunctionEnv env)
Evaluate this expression against the binding |
NodeValue |
getConstant()
NodeValue constant (returns null if not a constant) |
Expr |
getExpr()
|
ExprVar |
getExprVar()
Variable (or null) |
ExprFunction |
getFunction()
Get the function (returns null if not a function) |
Op |
getGraphPattern()
|
String |
getVarName()
Variable name (returns null if not a variable) |
Set<String> |
getVarNamesMentioned()
|
Set<Var> |
getVarsMentioned()
|
abstract int |
hashCode()
|
boolean |
isConstant()
Answer whether this is a constant expression - false includes "don't know" No constant folding so "false" from an expression that evaluates to a constant |
boolean |
isExpr()
|
boolean |
isFunction()
Answer wether this is a function. |
boolean |
isGraphPattern()
|
boolean |
isSatisfied(Binding binding,
FunctionEnv funcEnv)
Test whether a Constraint is satisfied, given a set of bindings Includes error propagtion and Effective Boolean Value rules. |
boolean |
isVariable()
Answer whether this is a variable (in which case getVarName and getNodeVar can be called) |
String |
toString()
|
void |
varNamesMentioned(Collection<String> acc)
|
void |
varsMentioned(Collection<Var> acc)
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.sparql.expr.Expr |
|---|
visit |
| Constructor Detail |
|---|
public ExprNode()
| Method Detail |
|---|
public boolean isSatisfied(Binding binding,
FunctionEnv funcEnv)
Expr
isSatisfied in interface Exprbinding - The bindingsfuncEnv - FunctionEnv
public boolean isExpr()
public final Expr getExpr()
public abstract NodeValue eval(Binding binding,
FunctionEnv env)
Expr
eval in interface Exprpublic Set<Var> getVarsMentioned()
getVarsMentioned in interface Exprpublic void varsMentioned(Collection<Var> acc)
varsMentioned in interface Exprpublic Set<String> getVarNamesMentioned()
public void varNamesMentioned(Collection<String> acc)
public abstract int hashCode()
hashCode in class Objectpublic abstract boolean equals(Object other)
equals in class Objectpublic final Expr copySubstitute(Binding binding)
Expr
copySubstitute in interface Exprpublic final Expr deepCopy()
Expr
deepCopy in interface Expr
public abstract Expr copySubstitute(Binding binding,
boolean foldConstants)
copySubstitute in interface Exprpublic abstract Expr applyNodeTransform(NodeTransform transform)
Expr
applyNodeTransform in interface Exprpublic boolean isVariable()
Expr
isVariable in interface Exprpublic String getVarName()
Expr
getVarName in interface Exprpublic ExprVar getExprVar()
Expr
getExprVar in interface Exprpublic Var asVar()
Expr
asVar in interface Exprpublic boolean isConstant()
Expr
isConstant in interface Exprpublic NodeValue getConstant()
Expr
getConstant in interface Exprpublic boolean isFunction()
Expr
isFunction in interface Exprpublic ExprFunction getFunction()
Expr
getFunction in interface Exprpublic boolean isGraphPattern()
public Op getGraphPattern()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||