CMP_EQUAL, CMP_GREATER, CMP_INDETERMINATE, CMP_LESS, CMP_UNEQUAL
Constructor and Description |
---|
ExprVar(Node n) |
ExprVar(String name) |
ExprVar(Var v) |
Modifier and Type | Method and Description |
---|---|
Expr |
apply(ExprTransform transform) |
Expr |
applyNodeTransform(NodeTransform transform)
Rewrite, applying a node->node transformation
|
String |
asSparqlExpr() |
Var |
asVar()
Convert to a Var variable.
|
Expr |
copy(Var v) |
Expr |
copySubstitute(Binding binding,
boolean foldConstants) |
boolean |
equals(Object other) |
NodeValue |
eval(Binding binding,
FunctionEnv env)
Evaluate this expression against the binding
|
void |
format(Query query,
IndentedWriter out) |
Node |
getAsNode() |
ExprVar |
getExprVar()
Variable (or null)
|
String |
getVarName()
Variable name (returns null if not a variable)
|
int |
hashCode() |
boolean |
isVariable()
Answer whether this is a variable (in which case getVarName and getNodeVar can be called)
|
String |
toPrefixString() |
String |
toString() |
void |
visit(ExprVisitor visitor) |
copySubstitute, deepCopy, getConstant, getExpr, getFunction, getGraphPattern, getVarNamesMentioned, getVarsMentioned, isConstant, isExpr, isFunction, isGraphPattern, isSatisfied, varNamesMentioned, varsMentioned
public ExprVar(String name)
public ExprVar(Node n)
public ExprVar(Var v)
public NodeValue eval(Binding binding, FunctionEnv env)
Expr
public Expr copySubstitute(Binding binding, boolean foldConstants)
copySubstitute
in interface Expr
copySubstitute
in class ExprNode
public Expr applyNodeTransform(NodeTransform transform)
Expr
applyNodeTransform
in interface Expr
applyNodeTransform
in class ExprNode
public void visit(ExprVisitor visitor)
public Expr apply(ExprTransform transform)
public void format(Query query, IndentedWriter out)
public boolean isVariable()
Expr
isVariable
in interface Expr
isVariable
in class ExprNode
public String getVarName()
Expr
getVarName
in interface Expr
getVarName
in class ExprNode
public ExprVar getExprVar()
Expr
getExprVar
in interface Expr
getExprVar
in class ExprNode
public Node getAsNode()
public String toPrefixString()
public String asSparqlExpr()
Licenced under the Apache License, Version 2.0