Package org.apache.xerces.impl.xpath
Class XPath
java.lang.Object
org.apache.xerces.impl.xpath.XPath
- Direct Known Subclasses:
Field.XPath
,Selector.XPath
Bare minimum XPath parser.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: XPath.java 965250 2010-07-18 16:04:58Z mrglavas $
- Author:
- Andy Clark, IBM
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Axis.static class
A location path representation for an XPath expression.static class
Node test.static class
A location path step comprised of an axis and node test. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
Expression.protected final XPath.LocationPath[]
Location paths.protected final SymbolTable
Symbol table. -
Constructor Summary
ConstructorsConstructorDescriptionXPath
(String xpath, SymbolTable symbolTable, org.apache.xerces.xni.NamespaceContext context) Constructs an XPath object from the specified expression. -
Method Summary
Modifier and TypeMethodDescriptionReturns a representation of the first location path for this XPath.Returns a representation of all location paths for this XPath.static void
Main program entry.toString()
Returns a string representation of this object.
-
Field Details
-
fExpression
Expression. -
fSymbolTable
Symbol table. -
fLocationPaths
Location paths.
-
-
Constructor Details
-
XPath
public XPath(String xpath, SymbolTable symbolTable, org.apache.xerces.xni.NamespaceContext context) throws XPathException Constructs an XPath object from the specified expression.- Throws:
XPathException
-
-
Method Details
-
getLocationPaths
Returns a representation of all location paths for this XPath. XPath = locationPath ( '|' locationPath) -
getLocationPath
Returns a representation of the first location path for this XPath. -
toString
Returns a string representation of this object. -
main
Main program entry.- Throws:
Exception
-