|
||||||||||
| 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.ParsedLiteral
public class ParsedLiteral
| 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 |
| Constructor Summary | |
|---|---|
ParsedLiteral()
|
|
| Method Summary | |
|---|---|
Expr |
applyNodeTransform(NodeTransform transform)
Rewrite, applying a node->node transformation |
int |
argCount()
|
String |
asInfixString()
|
String |
asPrefixString()
|
String |
asQuotedString()
|
String |
asUnquotedString()
|
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 writer)
|
void |
format(Query query,
org.openjena.atlas.io.IndentedWriter writer)
|
com.hp.hpl.jena.graph.query.Expression |
getArg(int i)
|
boolean |
getBoolean()
|
NodeValue |
getConstant()
NodeValue constant (returns null if not a constant) |
double |
getDouble()
|
ExprVar |
getExprVar()
Variable (or null) |
String |
getFun()
|
ExprFunction |
getFunction()
Get the function (returns null if not a function) |
long |
getInt()
|
String |
getName()
|
com.hp.hpl.jena.graph.Node |
getNode()
|
String |
getString()
|
String |
getURI()
|
Object |
getValue()
|
String |
getVarName()
Variable name (returns null if not a variable) |
Set<String> |
getVarNamesMentioned()
|
Set<Var> |
getVarsMentioned()
|
boolean |
isApply()
|
boolean |
isBoolean()
|
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 |
isDouble()
|
boolean |
isFunction()
Answer wether this is a function. |
boolean |
isInt()
|
boolean |
isNode()
|
boolean |
isNumber()
|
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 |
isSet()
|
boolean |
isString()
|
boolean |
isURI()
|
boolean |
isVariable()
Answer whether this is a variable (in which case getVarName and getNodeVar can be called) |
void |
postParse2(Query q)
|
com.hp.hpl.jena.graph.query.Valuator |
prepare(com.hp.hpl.jena.graph.query.VariableIndexes vi)
|
String |
toString()
|
String |
valueString()
|
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, jjtClose, 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, isFunction, isSatisfied, isVariable, varsMentioned, visit |
| Constructor Detail |
|---|
public ParsedLiteral()
| Method Detail |
|---|
public RDQL_NodeValue evalRDQL(Query q,
com.hp.hpl.jena.graph.query.IndexValues env)
evalRDQL in interface ExprRDQLpublic boolean isSet()
public boolean isNumber()
isNumber in interface RDQL_NodeValuepublic boolean isInt()
isInt in interface RDQL_NodeValuepublic boolean isDouble()
isDouble in interface RDQL_NodeValuepublic boolean isBoolean()
isBoolean in interface RDQL_NodeValuepublic boolean isString()
isString in interface RDQL_NodeValuepublic boolean isURI()
isURI in interface RDQL_NodeValuepublic boolean isNode()
isNode in interface RDQL_NodeValuepublic long getInt()
getInt in interface RDQL_NodeValuepublic double getDouble()
getDouble in interface RDQL_NodeValuepublic boolean getBoolean()
getBoolean in interface RDQL_NodeValuepublic String getString()
getString in interface RDQL_NodeValuepublic String getURI()
getURI in interface RDQL_NodeValuepublic com.hp.hpl.jena.graph.Node getNode()
getNode in interface RDQL_NodeValuepublic 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 String asQuotedString()
public String asUnquotedString()
public String asInfixString()
asInfixString in interface PrintableRDQLpublic String asPrefixString()
asPrefixString in interface PrintableRDQLpublic void format(org.openjena.atlas.io.IndentedWriter writer)
format in interface PrintableRDQLpublic String valueString()
valueString in interface RDQL_NodeValuepublic 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 isFunction()
Expr
isFunction in interface Exprpublic ExprFunction getFunction()
Expr
getFunction in interface Exprpublic 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.Expression
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 | |||||||||