QueryNode.Any, QueryNode.Bind, QueryNode.Bound, QueryNode.Fixed, QueryNode.JustBound, QueryNode.MustNotMatchException| Constructor and Description |
|---|
QueryNode.Bind(Node n,
int index) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFrozen()
Answer true iff this node is "frozen", ie its value is fixed, when it
is encountered; that is, it is not a Bind or JustBound node.
|
boolean |
match(Domain d,
Node value)
Answer true iff this QueryNode matches, in the context of the binding
Domain
d, the node x. |
boolean |
matchOrBind(Domain d,
Node value)
Optimisation: the action to be performed when matching a just-bound
variable or binding a newly-bound variable, or nothing for any other
kind of QueryNode.
|
boolean |
mustMatch()
Answer true iff this QueryNode must be used in a triple-match of its
owning QueryTriple.
|
String |
toString()
Return a handy string representation for debugging purposes.
|
public QueryNode.Bind(Node n, int index)
public boolean mustMatch()
QueryNodepublic boolean isFrozen()
QueryNodepublic boolean match(Domain d, Node value)
QueryNoded, the node x.public boolean matchOrBind(Domain d, Node value)
QueryNodematchOrBind in class QueryNodeLicenced under the Apache License, Version 2.0