| java.lang.Object com.hp.hpl.jena.graph.query.Element com.hp.hpl.jena.graph.query.Bind
Bind | public class Bind extends Element (Code) | | A binding instance of a variable. It accepts any node and records it in the supplied
Domain at the index allocated to it when it is created.
author: hedgehog |
Constructor Summary | |
public | Bind(int n) Initialise a Bind element: remember the index n which is the
place in Domain's where it may store its value. |
Method Summary | |
public Node | asNodeMatch(Domain d) Answer Node.ANY, as a binding occurance of a variable can match anything. | public boolean | match(Domain d, Node x) Answer true after updating the domain to record the value this element binds.
Parameters: d - the domain in which to note this element is bound to x . | public String | toString() |
Bind | public Bind(int n)(Code) | | Initialise a Bind element: remember the index n which is the
place in Domain's where it may store its value.
|
asNodeMatch | public Node asNodeMatch(Domain d)(Code) | | Answer Node.ANY, as a binding occurance of a variable can match anything.
|
match | public boolean match(Domain d, Node x)(Code) | | Answer true after updating the domain to record the value this element binds.
Parameters: d - the domain in which to note this element is bound to x . true [after side-effecting d] |
|
|