Class XPath
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xpath.XPath
-
- Direct Known Subclasses:
Field.XPath
,Selector.XPath
public class XPath extends Object
Bare minimum XPath parser.- Version:
- $Id$
- Author:
- Andy Clark, IBM
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XPath.Axis
Axis.static class
XPath.LocationPath
A location path representation for an XPath expression.static class
XPath.NodeTest
Node test.static class
XPath.Step
A location path step comprised of an axis and node test.
-
Field Summary
Fields Modifier and Type Field Description protected String
fExpression
Expression.protected XPath.LocationPath[]
fLocationPaths
Location paths.protected SymbolTable
fSymbolTable
Symbol table.
-
Constructor Summary
Constructors Constructor Description XPath(String xpath, SymbolTable symbolTable, NamespaceContext context)
Constructs an XPath object from the specified expression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XPath.LocationPath
getLocationPath()
Returns a representation of the first location path for this XPath.XPath.LocationPath[]
getLocationPaths()
Returns a representation of all location paths for this XPath.static void
main(String[] argv)
Main program entry.String
toString()
Returns a string representation of this object.
-
-
-
Field Detail
-
fExpression
protected final String fExpression
Expression.
-
fSymbolTable
protected final SymbolTable fSymbolTable
Symbol table.
-
fLocationPaths
protected final XPath.LocationPath[] fLocationPaths
Location paths.
-
-
Constructor Detail
-
XPath
public XPath(String xpath, SymbolTable symbolTable, NamespaceContext context) throws XPathException
Constructs an XPath object from the specified expression.- Throws:
XPathException
-
-
Method Detail
-
getLocationPaths
public XPath.LocationPath[] getLocationPaths()
Returns a representation of all location paths for this XPath. XPath = locationPath ( '|' locationPath)
-
getLocationPath
public XPath.LocationPath getLocationPath()
Returns a representation of the first location path for this XPath.
-
toString
public String toString()
Returns a string representation of this object.
-
-