Package org.apache.xerces.impl.xpath
Class XPath
- java.lang.Object
-
- org.apache.xerces.impl.xpath.XPath
-
- Direct Known Subclasses:
Field.XPath,Selector.XPath
public class XPath extends java.lang.ObjectBare 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 Classes Modifier and Type Class Description static classXPath.AxisAxis.static classXPath.LocationPathA location path representation for an XPath expression.static classXPath.NodeTestNode test.static classXPath.StepA location path step comprised of an axis and node test.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringfExpressionExpression.protected XPath.LocationPath[]fLocationPathsLocation paths.protected SymbolTablefSymbolTableSymbol table.
-
Constructor Summary
Constructors Constructor Description XPath(java.lang.String xpath, SymbolTable symbolTable, org.apache.xerces.xni.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.LocationPathgetLocationPath()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 voidmain(java.lang.String[] argv)Main program entry.java.lang.StringtoString()Returns a string representation of this object.
-
-
-
Field Detail
-
fExpression
protected final java.lang.String fExpression
Expression.
-
fSymbolTable
protected final SymbolTable fSymbolTable
Symbol table.
-
fLocationPaths
protected final XPath.LocationPath[] fLocationPaths
Location paths.
-
-
Constructor Detail
-
XPath
public XPath(java.lang.String xpath, SymbolTable symbolTable, org.apache.xerces.xni.NamespaceContext context) throws XPathExceptionConstructs 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 java.lang.String toString()
Returns a string representation of this object.- Overrides:
toStringin classjava.lang.Object
-
main
public static void main(java.lang.String[] argv) throws java.lang.ExceptionMain program entry.- Throws:
java.lang.Exception
-
-