|
||||||||||
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.PatternStageCompiler
public final class PatternStageCompiler
PatternStageCompiler serves two purposes: it contains the standard algorithm for compiling patterns-as-triples to patterns-as-Pattern(s), and it has the standard implementation of PatternCompiler in terms of ordinary Elements.
Constructor Summary | |
---|---|
PatternStageCompiler()
no state, so the constructor is boring. |
Method Summary | |
---|---|
Element |
any()
Method called to deliver a compiled element from a wildcard ANY. |
Element |
bind(Node n,
int index)
Method called to deliver a compiled element from a binding occurance of a variable Node allocated at a given index position. |
Element |
bound(Node n,
int index)
Method called to deliver a compiled element from a bound occurance of a variable Node allocated at a given index position. |
static Pattern[] |
compile(PatternCompiler compiler,
Mapping map,
Triple[] source)
to compile an array of triples, compile each triple and form the corresponding array of Patterns. |
Element |
fixed(Node value)
Method called to deliver a compiled Element constructed from a constant Node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatternStageCompiler()
Method Detail |
---|
public static Pattern[] compile(PatternCompiler compiler, Mapping map, Triple[] source)
public Element fixed(Node value)
PatternCompiler
fixed
in interface PatternCompiler
public Element bound(Node n, int index)
PatternCompiler
bound
in interface PatternCompiler
public Element bind(Node n, int index)
PatternCompiler
bind
in interface PatternCompiler
public Element any()
PatternCompiler
any
in interface PatternCompiler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |