Top Fields Constructors Methods
com.sun.org.apache.xpath.internal.axes

public Class HasPositionalPredChecker

extends XPathVisitor
Class Inheritance
Annotations
@SuppressWarnings:deprecation
Imports
com.sun.org.apache.xpath.internal.Expression, .ExpressionOwner, .XPathVisitor, com.sun.org.apache.xpath.internal.functions.FuncLast, .FuncPosition, .Function, com.sun.org.apache.xpath.internal.objects.XNumber, com.sun.org.apache.xpath.internal.operations.Div, .Minus, .Mod, .Mult, .Plus, .Quo, .Variable

Field Summary

Modifier and TypeField and Description
private boolean
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if the path is confirmed to be absolute, false if it may contain context dependencies.
check
(LocPathIterator
LocPathIterator that is assumed to be absolute, but needs checking.
path
)

Process the LocPathIterator to see if it contains variables or functions that may make it context dependent.

public boolean

Returns:

true if the sub expressions should be traversed.
visitFunction
(ExpressionOwner
The owner of the expression, to which the expression can be reset if rewriting takes place.
owner
,
Function
The function reference object.
func
)

Overrides com.sun.org.apache.xpath.internal.XPathVisitor.visitFunction.

Visit a function.

public boolean

Returns:

true if the sub expressions should be traversed.
visitPredicate
(ExpressionOwner
The owner of the expression, to which the expression can be reset if rewriting takes place.
owner
,
Expression
The predicate object.
pred
)

Overrides com.sun.org.apache.xpath.internal.XPathVisitor.visitPredicate.

Visit a predicate within a location path.

Inherited from com.sun.org.apache.xpath.internal.XPathVisitor:
visitBinaryOperationvisitLocationPathvisitMatchPatternvisitNumberLiteralvisitStepvisitStringLiteralvisitUnaryOperationvisitUnionPathvisitUnionPatternvisitVariableRef

Field Detail

m_hasPositionalPredback to summary
private boolean m_hasPositionalPred
m_predDepthback to summary
private int m_predDepth

Constructor Detail

HasPositionalPredCheckerback to summary
public HasPositionalPredChecker()

Method Detail

checkback to summary
public static boolean check(LocPathIterator path)

Process the LocPathIterator to see if it contains variables or functions that may make it context dependent.

Parameters
path:LocPathIterator

LocPathIterator that is assumed to be absolute, but needs checking.

Returns:boolean

true if the path is confirmed to be absolute, false if it may contain context dependencies.

visitFunctionback to summary
public boolean visitFunction(ExpressionOwner owner, Function func)

Overrides com.sun.org.apache.xpath.internal.XPathVisitor.visitFunction.

Visit a function.

Parameters
owner:ExpressionOwner

The owner of the expression, to which the expression can be reset if rewriting takes place.

func:Function

The function reference object.

Returns:boolean

true if the sub expressions should be traversed.

visitPredicateback to summary
public boolean visitPredicate(ExpressionOwner owner, Expression pred)

Overrides com.sun.org.apache.xpath.internal.XPathVisitor.visitPredicate.

Visit a predicate within a location path. Note that there isn't a proper unique component for predicates, and that the expression will be called also for whatever type Expression is.

Parameters
owner:ExpressionOwner

The owner of the expression, to which the expression can be reset if rewriting takes place.

pred:Expression

The predicate object.

Returns:boolean

true if the sub expressions should be traversed.