-
-
Field Summary
-
Fields inherited from class com.hp.hpl.jena.graph.query.Element
ANY
-
Constructor Summary
Constructors
Constructor and Description |
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
Methods
Modifier and Type |
Method and Description |
Node |
asNodeMatch(Domain d)
Answer Node.ANY, as a binding occurance of a variable can match anything.
|
boolean |
match(Domain d,
Node x)
Answer true after updating the domain to record the value this element binds.
|
String |
toString() |
-
-
Method Detail
-
match
public boolean match(Domain d,
Node x)
Answer true after updating the domain to record the value this element binds.
- Specified by:
match
in class Element
- Parameters:
d
- the domain in which to note this element is bound to x
.x
- the value to match
- Returns:
- true [after side-effecting d]
-
asNodeMatch
public Node asNodeMatch(Domain d)
Answer Node.ANY, as a binding occurance of a variable can match anything.
- Specified by:
asNodeMatch
in class Element
- Parameters:
d
- the domain holding the variable bindings
- Returns:
- the matched value (null if none, ie binding occurance or ANY)
Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP