|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.graph.query.Element
An Element of a matching triple. Elements have associated indexes, their place in the Domain storing the matching values. Subclasses represent constants, binding occurances of variables, and bound instances of variables.
Field Summary | |
static Element |
ANY
The constant ANY matches anything and binds nothing |
Method Summary | |
abstract Node |
asNodeMatch(Domain d)
Answer a Node suitable as a pattern-match element in a TripleMatch approximating this Element. |
int |
getIndex()
Answer this Element's index in the Domains it is compiled for. |
abstract boolean |
match(Domain d,
Node x)
Answer true if this Element matches x given the bindings in d. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Element ANY
Method Detail |
public int getIndex()
public abstract boolean match(Domain d, Node x)
d
- the variable bindings to read/update for variablesx
- the value to match
public abstract Node asNodeMatch(Domain d)
d
- the domain holding the variable bindings
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |