public abstract class Element extends Object
Modifier and Type | Field and Description |
---|---|
static Element |
ANY
The constant ANY matches anything and binds nothing
|
Modifier and Type | Method and Description |
---|---|
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() |
public static final Element ANY
public int getIndex()
public abstract boolean match(Domain d, Node x)
d
- the variable bindings to read/update for variablesx
- the value to matchpublic abstract Node asNodeMatch(Domain d)
d
- the domain holding the variable bindingsCopyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP