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()
QueryNode
public boolean isFrozen()
QueryNode
public boolean match(Domain d, Node value)
QueryNode
d
, the node x
.public boolean matchOrBind(Domain d, Node value)
QueryNode
matchOrBind
in class QueryNode
Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP