public class TemplateRegistry.Finder<N> extends Object
TemplateRegistry
,
e.g. when constructing a Transformation
.
This class is reusable; it could be unified with TemplateRegistry,
but it has a type parameter N giving the node implementation to match.
and TemplateRegistry doesn't.
find(Object, NamespaceName)
.Modifier and Type | Field and Description |
---|---|
Function<NamespaceName,Function<N>> |
noFuns |
Function<NamespaceName,Value<N>> |
noVars |
Modifier and Type | Method and Description |
---|---|
Collection<Rt.TemplateEntry> |
find(N n,
NamespaceName mode)
Central worker method, find set of matching templates for one given node.
|
protected boolean |
matchNotStep(N node,
TPathCache.PatternPart pp,
Context ns) |
boolean |
patternMatches(N node,
TPathCache.ExprClassified exp,
Context tpathContext)
Called by Application for realizing "xsl:number".
|
protected boolean |
patternMatches(N node,
TPathCache.PatternPart pp,
Context ns) |
protected Context<N> |
tmpContext(N node,
Function<String,String> ns) |
public final Function<NamespaceName,Value<N>> noVars
public final Function<NamespaceName,Function<N>> noFuns
public Collection<Rt.TemplateEntry> find(N n, NamespaceName mode)
public boolean patternMatches(N node, TPathCache.ExprClassified exp, Context tpathContext)
protected boolean patternMatches(N node, TPathCache.PatternPart pp, Context ns)
protected boolean matchNotStep(N node, TPathCache.PatternPart pp, Context ns)
see also the complete user documentation .