public class TPathCache extends Object
AttributeValueTemplate.
It always delivers a TPath.Expr;
if there are no opening brackets in the source, this will be one single constant
literal expression.
TPathCache.ExprClassified, which contains the parsed
code and analysis results (or "null" in the code field iff there had been errors.)
| Modifier and Type | Class and Description |
|---|---|
static class |
TPathCache.ExprClassified
Holds the results of parsing and analysis.
|
static class |
TPathCache.PatternPart
Statistic data on the sub-expressions of the top-level TPath.Union expression.
|
protected class |
TPathCache.PredicateChecker |
static class |
TPathCache.sensitivity
This value is ONLY related to the current-node-(list)-context,
not to referred variables & functions!
|
| Modifier and Type | Field and Description |
|---|---|
static TPath.Union |
ALL_LOWERS
tpath "(preceding::node()|nacestor-or-self::node())"
|
static TPath.Step |
ANYWHERE_IN_DOM |
protected Map<String,String> |
attributeValue_to_canonical |
protected Map<String,String> |
attributeValueTemplates_to_canonical |
static TPath.AxisSpecifier |
AXIS_ANC_OR_SELF |
static TPath.AxisSpecifier |
AXIS_DESC |
static TPath.AxisSpecifier |
AXIS_DESC_OR_SELF |
static TPath.AxisSpecifier |
AXIS_PRECEDING |
static TPath.AxisSpecifier |
AXIS_PRECEDING_SIBS |
protected Map<String,TPathCache.ExprClassified> |
canonical_to_parsed |
static TPath.Step |
PRECEDING_SIBS
tpath "precedingSiblings::node()"
|
static TPath.Step |
RELATIVE_TO_PRECEDING |
static TPath.Node |
TPATH_NODE |
static TPath.Root |
TPATH_ROOT |
| Constructor and Description |
|---|
TPathCache() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkFunction(TPath.FunctionCall f)
Means to check the function which can appear as first (umod: deepest)
expression on a path expression ("id(x)/a/b/")
|
boolean |
checkPattern(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg_EXT,
Location<XMLDocumentIdentifier> loc,
TPathCache.ExprClassified expr,
boolean inTemplateOrKeyMatch,
String role)
Returns whether the ExprClassified is a pattern, and updates
patternParts
accordingly. |
protected void |
checkStep(TPath.Step step,
boolean isTop) |
protected void |
checkTop(TPath.Expr expr) |
TPathCache.ExprClassified |
parse(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg_EXT,
Location<XMLDocumentIdentifier> loc,
NamespaceName attribName,
String data,
boolean isTemplate)
Parse expression source and store result to caches.
|
protected void |
splitTop(TPath.Expr expr) |
protected Map<String,String> attributeValueTemplates_to_canonical
protected Map<String,TPathCache.ExprClassified> canonical_to_parsed
public static final TPath.Node TPATH_NODE
public static final TPath.Root TPATH_ROOT
public static final TPath.AxisSpecifier AXIS_ANC_OR_SELF
public static final TPath.AxisSpecifier AXIS_DESC
public static final TPath.AxisSpecifier AXIS_DESC_OR_SELF
public static final TPath.AxisSpecifier AXIS_PRECEDING
public static final TPath.AxisSpecifier AXIS_PRECEDING_SIBS
public static final TPath.Step RELATIVE_TO_PRECEDING
public static final TPath.Step ANYWHERE_IN_DOM
public static final TPath.Union ALL_LOWERS
public static final TPath.Step PRECEDING_SIBS
public TPathCache.ExprClassified parse(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg_EXT, Location<XMLDocumentIdentifier> loc, NamespaceName attribName, String data, boolean isTemplate)
protected void checkStep(TPath.Step step, boolean isTop)
protected void checkFunction(TPath.FunctionCall f)
protected void checkTop(TPath.Expr expr)
protected void splitTop(TPath.Expr expr)
public boolean checkPattern(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg_EXT, Location<XMLDocumentIdentifier> loc, TPathCache.ExprClassified expr, boolean inTemplateOrKeyMatch, String role)
patternParts
accordingly.
Generates errors if ExprClassified is not correct as a pattern.see also the complete user documentation .