org.jaxen.pattern

Class PatternHandler

public class PatternHandler extends JaxenHandler

SAXPath XPathHandler implementation capable of building Jaxen expression trees which can walk various different object models.

Author: bob mcwhirter (bob@werken.com)

Field Summary
Patternpattern
Constructor Summary
PatternHandler()
Method Summary
protected PatterncreateAbsoluteLocationPath()
protected PatterncreateRelativeLocationPath()
voidendAbsoluteLocationPath()
protected voidendLocationPath()
voidendPathExpr()
voidendRelativeLocationPath()
protected voidendStep()
voidendUnionExpr(boolean create)
voidendXPath()
PatterngetPattern()
Retrieve the simplified Jaxen Pattern expression tree.
PatterngetPattern(boolean shouldSimplify)
Retrieve the Jaxen Pattern expression tree, optionally simplified.
voidstartAbsoluteLocationPath()
voidstartAllNodeStep(int axis)
voidstartCommentNodeStep(int axis)
voidstartNameStep(int axis, String prefix, String localName)
voidstartProcessingInstructionNodeStep(int axis, String name)
voidstartRelativeLocationPath()
voidstartTextNodeStep(int axis)
voidstartUnionExpr()

Field Detail

pattern

private Pattern pattern

Constructor Detail

PatternHandler

public PatternHandler()

Method Detail

createAbsoluteLocationPath

protected Pattern createAbsoluteLocationPath()

createRelativeLocationPath

protected Pattern createRelativeLocationPath()

endAbsoluteLocationPath

public void endAbsoluteLocationPath()

endLocationPath

protected void endLocationPath()

endPathExpr

public void endPathExpr()

endRelativeLocationPath

public void endRelativeLocationPath()

endStep

protected void endStep()

endUnionExpr

public void endUnionExpr(boolean create)

endXPath

public void endXPath()

getPattern

public Pattern getPattern()
Retrieve the simplified Jaxen Pattern expression tree.

This method is only valid once XPathReader.parse(...) successfully returned.

Returns: The Pattern expression tree.

getPattern

public Pattern getPattern(boolean shouldSimplify)
Retrieve the Jaxen Pattern expression tree, optionally simplified.

This method is only valid once XPathReader.parse(...) successfully returned.

Parameters: shouldSimplify ????

Returns: The Pattern expression tree.

startAbsoluteLocationPath

public void startAbsoluteLocationPath()

startAllNodeStep

public void startAllNodeStep(int axis)

startCommentNodeStep

public void startCommentNodeStep(int axis)

startNameStep

public void startNameStep(int axis, String prefix, String localName)

startProcessingInstructionNodeStep

public void startProcessingInstructionNodeStep(int axis, String name)

startRelativeLocationPath

public void startRelativeLocationPath()

startTextNodeStep

public void startTextNodeStep(int axis)

startUnionExpr

public void startUnionExpr()