public class ExpressionVisitor extends XPathVisitor
StylesheetHandler
creates
an XPath
, the ExpressionVisitor
visits the XPath expression. For any extension functions it
encounters, it instructs StylesheetRoot to register the
extension namespace.
This mechanism is required to locate extension functions
that may be embedded within an expression.Constructor and Description |
---|
ExpressionVisitor(StylesheetRoot sroot)
The constructor sets the StylesheetRoot variable which
is used to register extension namespaces.
|
Modifier and Type | Method and Description |
---|---|
boolean |
visitFunction(ExpressionOwner owner,
Function func)
If the function is an extension function, register the namespace.
|
visitBinaryOperation, visitLocationPath, visitMatchPattern, visitNumberLiteral, visitPredicate, visitStep, visitStringLiteral, visitUnaryOperation, visitUnionPath, visitUnionPattern, visitVariableRef
public ExpressionVisitor(StylesheetRoot sroot)
sroot
- the StylesheetRoot that is being constructed.public boolean visitFunction(ExpressionOwner owner, Function func)
visitFunction
in class XPathVisitor
owner
- The current XPath object that owns the expression.func
- The function currently being visited.Copyright © 2019 JBoss by Red Hat. All rights reserved.