| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.instruct.Instruction net.sf.saxon.instruct.AnalyzeString
AnalyzeString | public class AnalyzeString extends Instruction (Code) | | An xsl:analyze-string elements in the stylesheet. New at XSLT 2.0
|
Method Summary | |
public void | checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) Check that any elements and attributes constructed or returned by this expression are acceptable
in the content model of a given complex type. | public int | computeDependencies() Compute the dependencies of an expression, as the union of the
dependencies of its subexpressions. | public void | display(int level, NamePool pool, PrintStream out) Diagnostic print of expression structure. | public int | getInstructionNameCode() | public ItemType | getItemType(TypeHierarchy th) | public Expression | getMatchingExpression() | public Expression | getNonMatchingExpression() | public Iterator | iterateSubExpressions() | public Expression | optimize(Optimizer opt, StaticContext env, ItemType contextItemType) | public TailCall | processLeavingTail(XPathContext context) | protected void | promoteInst(PromotionOffer offer) Handle promotion offers, that is, non-local tree rewrites. | public Expression | simplify(StaticContext env) Simplify an expression. | public Expression | typeCheck(StaticContext env, ItemType contextItemType) |
AnalyzeString | public AnalyzeString(Expression select, Expression regex, Expression flags, Expression matching, Expression nonMatching, Pattern pattern)(Code) | | Construct an AnalyzeString instruction
Parameters: select - the expression containing the input string Parameters: regex - the regular expression Parameters: flags - the flags parameter Parameters: matching - actions to be applied to a matching substring Parameters: nonMatching - actions to be applied to a non-matching substring Parameters: pattern - the compiled regular expression, if it was known statically |
checkPermittedContents | public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException(Code) | | Check that any elements and attributes constructed or returned by this expression are acceptable
in the content model of a given complex type. It's always OK to say yes, since the check will be
repeated at run-time. The process of checking element and attribute constructors against the content
model of a complex type also registers the type of content expected of those constructors, so the
static validation can continue recursively.
|
computeDependencies | public int computeDependencies()(Code) | | Compute the dependencies of an expression, as the union of the
dependencies of its subexpressions. (This is overridden for path expressions
and filter expressions, where the dependencies of a subexpression are not all
propogated). This method should be called only once, to compute the dependencies;
after that, getDependencies should be used.
the depencies, as a bit-mask |
display | public void display(int level, NamePool pool, PrintStream out)(Code) | | Diagnostic print of expression structure. The expression is written to the System.err
output stream
Parameters: level - indentation level for this expression Parameters: out - |
getInstructionNameCode | public int getInstructionNameCode()(Code) | | |
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Get the item type of the items returned by evaluating this instruction
the static item type of the instruction Parameters: th - |
getMatchingExpression | public Expression getMatchingExpression()(Code) | | Get the expression used to process matching substrings
|
getNonMatchingExpression | public Expression getNonMatchingExpression()(Code) | | Get the expression used to process non-matching substrings
|
iterateSubExpressions | public Iterator iterateSubExpressions()(Code) | | Get all the XPath expressions associated with this instruction
(in XSLT terms, the expression present on attributes of the instruction,
as distinct from the child instructions in a sequence construction)
|
simplify | public Expression simplify(StaticContext env) throws XPathException(Code) | | Simplify an expression. This performs any static optimization (by rewriting the expression
as a different expression).
the simplified expression throws: XPathException - if an error is discovered during expressionrewriting |
|
|