|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xpath.XPathVisitor org.apache.xalan.extensions.ExpressionVisitor
public class ExpressionVisitor
When 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.
Field Summary | |
---|---|
private StylesheetRoot |
m_sroot
|
Constructor Summary | |
---|---|
ExpressionVisitor(StylesheetRoot sroot)
The constructor sets the StylesheetRoot variable which is used to register extension namespaces. |
Method Summary | |
---|---|
boolean |
visitFunction(ExpressionOwner owner,
Function func)
If the function is an extension function, register the namespace. |
Methods inherited from class org.apache.xpath.XPathVisitor |
---|
visitBinaryOperation, visitLocationPath, visitMatchPattern, visitNumberLiteral, visitPredicate, visitStep, visitStringLiteral, visitUnaryOperation, visitUnionPath, visitUnionPattern, visitVariableRef |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private StylesheetRoot m_sroot
Constructor Detail |
---|
public ExpressionVisitor(StylesheetRoot sroot)
sroot
- the StylesheetRoot that is being constructed.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |