|
||||||||||
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.xpath.axes.HasPositionalPredChecker
public class HasPositionalPredChecker
Field Summary | |
---|---|
private boolean |
m_hasPositionalPred
|
private int |
m_predDepth
|
Constructor Summary | |
---|---|
HasPositionalPredChecker()
|
Method Summary | |
---|---|
static boolean |
check(LocPathIterator path)
Process the LocPathIterator to see if it contains variables or functions that may make it context dependent. |
boolean |
visitFunction(ExpressionOwner owner,
Function func)
Visit a function. |
boolean |
visitPredicate(ExpressionOwner owner,
Expression pred)
Visit a predicate within a location path. |
Methods inherited from class org.apache.xpath.XPathVisitor |
---|
visitBinaryOperation, visitLocationPath, visitMatchPattern, visitNumberLiteral, 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 boolean m_hasPositionalPred
private int m_predDepth
Constructor Detail |
---|
public HasPositionalPredChecker()
Method Detail |
---|
public static boolean check(LocPathIterator path)
path
- LocPathIterator that is assumed to be absolute, but needs checking.
public boolean visitFunction(ExpressionOwner owner, Function func)
visitFunction
in class XPathVisitor
owner
- The owner of the expression, to which the expression can
be reset if rewriting takes place.func
- The function reference object.
public boolean visitPredicate(ExpressionOwner owner, Expression pred)
visitPredicate
in class XPathVisitor
owner
- The owner of the expression, to which the expression can
be reset if rewriting takes place.pred
- The predicate object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |