org.apache.xerces.impl.xpath

Class XPath

public class XPath extends Object

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,v 1.18 2005/03/07 23:28:41 mrglavas Exp $

Author: Andy Clark, IBM

Nested Class Summary
static classXPath.Axis
Axis.
static classXPath.LocationPath
A location path representation for an XPath expression.
static classXPath.NodeTest
Node test.
static classXPath.Step
A location path step comprised of an axis and node test.
Field Summary
protected StringfExpression
Expression.
protected XPath.LocationPath[]fLocationPaths
Location paths.
protected SymbolTablefSymbolTable
Symbol table.
Constructor Summary
XPath(String xpath, SymbolTable symbolTable, NamespaceContext context)
Constructs an XPath object from the specified expression.
Method Summary
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(String[] argv)
Main program entry.
StringtoString()
Returns a string representation of this object.

Field Detail

fExpression

protected String fExpression
Expression.

fLocationPaths

protected XPath.LocationPath[] fLocationPaths
Location paths.

fSymbolTable

protected SymbolTable fSymbolTable
Symbol table.

Constructor Detail

XPath

public XPath(String xpath, SymbolTable symbolTable, NamespaceContext context)
Constructs an XPath object from the specified expression.

Method Detail

getLocationPath

public XPath.LocationPath getLocationPath()
Returns a representation of the first location path for this XPath.

getLocationPaths

public XPath.LocationPath[] getLocationPaths()
Returns a representation of all location paths for this XPath. XPath = locationPath ( '|' locationPath)

main

public static void main(String[] argv)
Main program entry.

toString

public String toString()
Returns a string representation of this object.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.