|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.graph.query.Element
public abstract class 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. |
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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |