public final class PatternStageCompiler extends Object implements PatternCompiler
| Constructor and Description |
|---|
PatternStageCompiler()
no state, so the constructor is boring.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public PatternStageCompiler()
public static Pattern[] compile(PatternCompiler compiler, Mapping map, Triple[] source)
public Element fixed(Node value)
PatternCompilerfixed in interface PatternCompilerpublic Element bound(Node n, int index)
PatternCompilerbound in interface PatternCompilerpublic Element bind(Node n, int index)
PatternCompilerbind in interface PatternCompilerpublic Element any()
PatternCompilerany in interface PatternCompilerLicenced under the Apache License, Version 2.0