com.hp.hpl.jena.graph.query
Class QueryNode.Bind
java.lang.Object
com.hp.hpl.jena.graph.query.QueryNode
com.hp.hpl.jena.graph.query.QueryNode.Bind
- Enclosing class:
- QueryNode
public static class QueryNode.Bind
- extends QueryNode
Method Summary |
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. |
java.lang.String |
toString()
Return a handy string representation for debugging purposes. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QueryNode.Bind
public QueryNode.Bind(Node n,
int index)
mustMatch
public boolean mustMatch()
- Description copied from class:
QueryNode
- Answer true iff this QueryNode must be used in a triple-match of its
owning QueryTriple.
- Overrides:
mustMatch
in class QueryNode
isFrozen
public boolean isFrozen()
- Description copied from class:
QueryNode
- 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.
- Overrides:
isFrozen
in class QueryNode
match
public boolean match(Domain d,
Node value)
- Description copied from class:
QueryNode
- Answer true iff this QueryNode matches, in the context of the binding
Domain
d
, the node x
.
- Overrides:
match
in class QueryNode
matchOrBind
public boolean matchOrBind(Domain d,
Node value)
- Description copied from class:
QueryNode
- 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.
- Specified by:
matchOrBind
in class QueryNode
toString
public java.lang.String toString()
- Description copied from class:
QueryNode
- Return a handy string representation for debugging purposes. Not for
machine consumption.
- Overrides:
toString
in class QueryNode
Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP