com.hp.hpl.jena.graph.query
Class QueryNode.JustBound

java.lang.Object
  extended by com.hp.hpl.jena.graph.query.QueryNode
      extended by com.hp.hpl.jena.graph.query.QueryNode.JustBound
Enclosing class:
QueryNode

public static class QueryNode.JustBound
extends QueryNode


Nested Class Summary
 
Nested classes/interfaces inherited from class com.hp.hpl.jena.graph.query.QueryNode
QueryNode.Any, QueryNode.Bind, QueryNode.Bound, QueryNode.Fixed, QueryNode.JustBound, QueryNode.MustNotMatchException
 
Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.query.QueryNode
factory, index, NO_INDEX, node
 
Constructor Summary
QueryNode.JustBound(Node n, int index)
           
 
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 X)
          Answer true iff this QueryNode matches, in the context of the binding Domain d, the node x.
 boolean matchOrBind(Domain d, Node x)
          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.
 
Methods inherited from class com.hp.hpl.jena.graph.query.QueryNode
classify, finder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryNode.JustBound

public QueryNode.JustBound(Node n,
                           int index)
Method Detail

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 X)
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 x)
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 String toString()
Description copied from class: QueryNode
Return a handy string representation for debugging purposes. Not for machine consumption.

Overrides:
toString in class QueryNode


Licenced under the Apache License, Version 2.0