public class XPath extends Object
Modifier and Type | Class and 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.
|
Modifier and Type | Field and Description |
---|---|
protected String |
fExpression
Expression.
|
protected XPath.LocationPath[] |
fLocationPaths
Location paths.
|
protected SymbolTable |
fSymbolTable
Symbol table.
|
Constructor and Description |
---|
XPath(String xpath,
SymbolTable symbolTable,
NamespaceContext context)
Constructs an XPath object from the specified expression.
|
Modifier and Type | Method and 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.
|
protected final String fExpression
protected final SymbolTable fSymbolTable
protected final XPath.LocationPath[] fLocationPaths
public XPath(String xpath, SymbolTable symbolTable, NamespaceContext context) throws XPathException
XPathException
public XPath.LocationPath[] getLocationPaths()
public XPath.LocationPath getLocationPath()
public String toString()
Copyright © 2016 JBoss by Red Hat. All rights reserved.