|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.lang.rdql.SimpleNode
com.hp.hpl.jena.sparql.lang.rdql.Q_Subtract
public class Q_Subtract
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.hp.hpl.jena.graph.query.Expression |
|---|
com.hp.hpl.jena.graph.query.Expression.Application, com.hp.hpl.jena.graph.query.Expression.Base, com.hp.hpl.jena.graph.query.Expression.BoolConstant, com.hp.hpl.jena.graph.query.Expression.Constant, com.hp.hpl.jena.graph.query.Expression.Fixed, com.hp.hpl.jena.graph.query.Expression.Util, com.hp.hpl.jena.graph.query.Expression.Valof, com.hp.hpl.jena.graph.query.Expression.Variable |
| Field Summary |
|---|
| Fields inherited from interface com.hp.hpl.jena.sparql.expr.Expr |
|---|
CMP_EQUAL, CMP_GREATER, CMP_INDETERMINATE, CMP_LESS, CMP_UNEQUAL |
| Fields inherited from interface com.hp.hpl.jena.graph.query.Expression |
|---|
FALSE, TRUE |
| Method Summary | |
|---|---|
Expr |
applyNodeTransform(NodeTransform transform)
Rewrite, applying a node->node transformation |
int |
argCount()
|
String |
asInfixString()
|
String |
asPrefixString()
|
Var |
asVar()
Convert to a Var variable. |
Expr |
copySubstitute(Binding binding)
Deep copy with substitution |
Expr |
copySubstitute(Binding binding,
boolean foldConstants)
|
Expr |
deepCopy()
Deep copy |
NodeValue |
eval(Binding binding,
FunctionEnv env)
Evaluate this expression against the binding |
boolean |
evalBool(com.hp.hpl.jena.graph.query.IndexValues iv)
Answer the result of evaluating the constraint expression as a primitive boolean value; implements Expression.evalBool(*). |
RDQL_NodeValue |
evalNode(Query q,
com.hp.hpl.jena.graph.query.IndexValues env)
Answer the NodeValue result of evaluating the constraints relative to the query and with the specified environment. |
Object |
evalObject(com.hp.hpl.jena.graph.query.IndexValues iv)
Answer the result of evaluating the constraint expression; implements Expression.evalObject(*). |
RDQL_NodeValue |
evalRDQL(Query q,
com.hp.hpl.jena.graph.query.IndexValues env)
|
void |
format(org.openjena.atlas.io.IndentedWriter w)
|
void |
format(Query query,
org.openjena.atlas.io.IndentedWriter writer)
|
com.hp.hpl.jena.graph.query.Expression |
getArg(int i)
|
NodeValue |
getConstant()
NodeValue constant (returns null if not a constant) |
ExprVar |
getExprVar()
Variable (or null) |
String |
getFun()
|
ExprFunction |
getFunction()
Get the function (returns null if not a function) |
String |
getName()
|
Object |
getValue()
|
String |
getVarName()
Variable name (returns null if not a variable) |
Set<String> |
getVarNamesMentioned()
|
Set<Var> |
getVarsMentioned()
|
boolean |
isApply()
|
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 |
isFunction()
Answer wether this is a function. |
boolean |
isSatisfied(Binding binding,
FunctionEnv execCxt)
Test whether a Constraint is satisfied, given a set of bindings Includes error propagtion and Effective Boolean Value rules. |
boolean |
isSatisfied(com.hp.hpl.jena.graph.query.IndexValues env)
|
boolean |
isVariable()
Answer whether this is a variable (in which case getVarName and getNodeVar can be called) |
void |
jjtClose()
This method is called after all the child nodes have been added. |
void |
postParse2(Query q)
|
com.hp.hpl.jena.graph.query.Valuator |
prepare(com.hp.hpl.jena.graph.query.VariableIndexes vi)
|
String |
toString()
|
void |
varNamesMentioned(Collection<String> acc)
|
void |
varsMentioned(Collection<Var> acc)
|
void |
visit(ExprVisitor visitor)
|
| Methods inherited from class com.hp.hpl.jena.sparql.lang.rdql.SimpleNode |
|---|
dump, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, postParse1, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.sparql.expr.Expr |
|---|
applyNodeTransform, asVar, copySubstitute, copySubstitute, deepCopy, eval, getConstant, getExprVar, getFunction, getVarName, getVarsMentioned, isConstant, isFunction, isSatisfied, isVariable, varsMentioned, visit |
| Method Detail |
|---|
public RDQL_NodeValue evalRDQL(Query q,
com.hp.hpl.jena.graph.query.IndexValues env)
evalRDQL in interface ExprRDQLpublic void jjtClose()
RDQL_Node
jjtClose in interface RDQL_NodejjtClose in class SimpleNodepublic boolean isApply()
isApply in interface com.hp.hpl.jena.graph.query.Expressionpublic String getFun()
getFun in interface com.hp.hpl.jena.graph.query.Expressionpublic int argCount()
argCount in interface com.hp.hpl.jena.graph.query.Expressionpublic com.hp.hpl.jena.graph.query.Expression getArg(int i)
getArg in interface com.hp.hpl.jena.graph.query.Expressionpublic String asInfixString()
asInfixString in interface PrintableRDQLpublic String asPrefixString()
asPrefixString in interface PrintableRDQLpublic void format(org.openjena.atlas.io.IndentedWriter w)
format in interface PrintableRDQLpublic String toString()
public Expr copySubstitute(Binding binding)
Expr
copySubstitute in interface Expr
public Expr copySubstitute(Binding binding,
boolean foldConstants)
copySubstitute in interface Exprpublic Expr applyNodeTransform(NodeTransform transform)
Expr
applyNodeTransform in interface Exprpublic Expr deepCopy()
Expr
deepCopy in interface Expr
public NodeValue eval(Binding binding,
FunctionEnv env)
Expr
eval in interface Exprpublic NodeValue getConstant()
Expr
getConstant in interface Exprpublic ExprVar getExprVar()
Expr
getExprVar in interface Exprpublic String getVarName()
Expr
getVarName in interface Exprpublic Var asVar()
Expr
asVar in interface Exprpublic void visit(ExprVisitor visitor)
visit in interface Expr
public boolean isSatisfied(Binding binding,
FunctionEnv execCxt)
Expr
isSatisfied in interface Exprbinding - The bindingsexecCxt - FunctionEnv
public boolean isSatisfied(com.hp.hpl.jena.graph.query.IndexValues env)
public void postParse2(Query q)
postParse2 in class SimpleNodepublic Set<Var> getVarsMentioned()
getVarsMentioned in interface Exprpublic Set<String> getVarNamesMentioned()
public void varNamesMentioned(Collection<String> acc)
public void varsMentioned(Collection<Var> acc)
varsMentioned in interface Exprpublic com.hp.hpl.jena.graph.query.Valuator prepare(com.hp.hpl.jena.graph.query.VariableIndexes vi)
prepare in interface com.hp.hpl.jena.graph.query.Expressionpublic Object evalObject(com.hp.hpl.jena.graph.query.IndexValues iv)
evalObject in interface com.hp.hpl.jena.graph.query.Valuatorpublic boolean evalBool(com.hp.hpl.jena.graph.query.IndexValues iv)
evalBool in interface com.hp.hpl.jena.graph.query.Valuator
public RDQL_NodeValue evalNode(Query q,
com.hp.hpl.jena.graph.query.IndexValues env)
public boolean isVariable()
Expr
isVariable in interface com.hp.hpl.jena.graph.query.ExpressionisVariable in interface Exprpublic String getName()
getName in interface com.hp.hpl.jena.graph.query.Expressionpublic boolean isConstant()
Expr
isConstant in interface com.hp.hpl.jena.graph.query.ExpressionisConstant in interface Exprpublic Object getValue()
getValue in interface com.hp.hpl.jena.graph.query.Expressionpublic boolean isFunction()
Expr
isFunction in interface Exprpublic ExprFunction getFunction()
Expr
getFunction in interface Expr
public void format(Query query,
org.openjena.atlas.io.IndentedWriter writer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||