Package eu.bandm.tools.xslt.base
Class TemplateRegistry.Finder<N>
java.lang.Object
eu.bandm.tools.xslt.base.TemplateRegistry.Finder<N>
- Enclosing class:
TemplateRegistry
Realizes the finding of templates according to [Xslt 1.0:5.2].
The template infos have been collected and pre-organized
acoordingly in a
The executive method is
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.
The executive method is
find(Object, NamespaceName).-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Function<NamespaceName, Function<N>> final Function<NamespaceName, Value<N>> -
Method Summary
Modifier and TypeMethodDescriptionfind(N n, NamespaceName mode) Central worker method, find set of matching templates for one given node.protected booleanmatchNotStep(N node, TPathCache.PatternPart pp, Context ns) booleanpatternMatches(N node, TPathCache.ExprClassified exp, Context tpathContext) Called by Application for realizing "xsl:number".protected booleanpatternMatches(N node, TPathCache.PatternPart pp, Context ns) tmpContext(N node, Function<String, String> ns)
-
Field Details
-
noVars
-
noFuns
-
-
Method Details
-
find
Central worker method, find set of matching templates for one given node. Not containing exactly one member indicates an xslt programming error. The top-level look-up is deterministic, for the given MODE. The next level steps through decreasing priorities, until something matches. -
patternMatches
Called by Application for realizing "xsl:number". -
patternMatches
-
tmpContext
-
matchNotStep
-