|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xpath.XPathProcessorImpl
Tokenizes and parses XPath expressions. This should really be named XPathParserImpl, and may be renamed in the future.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Constructor Summary | |
XPathProcessorImpl()
The parser constructor. |
|
XPathProcessorImpl(XPathSupport callbacks)
The parser constructor. |
Method Summary | |
protected void |
AbbreviatedNodeTestStep()
AbbreviatedNodeTestStep ::= '@'? NodeTest Predicate* |
protected int |
AdditiveExpr(int addPos)
XXXX. |
protected void |
AndExpr()
AndExpr ::= EqualityExpr | AndExpr 'and' EqualityExpr |
protected void |
Argument()
Argument ::= Expr |
protected int |
AxisName()
Basis ::= AxisName '::' NodeTest | AbbreviatedBasis |
protected void |
Basis()
Basis ::= AxisName '::' NodeTest | AbbreviatedBasis |
protected void |
BooleanExpr()
StringExpr ::= Expr |
static void |
diagnoseXPathString(java.lang.String str)
Dump an XPath string to System.out. |
static void |
diagnoseXPathString2(java.lang.String str)
Dump an XPath string to System.out. |
static void |
diagnoseXPathString3(java.lang.String str)
Dump an XPath string to System.out. |
protected java.lang.String |
dumpRemainingTokenQueue()
Dump the remaining token queue. |
protected int |
EqualityExpr(int addPos)
|
protected void |
Expr()
Expr ::= OrExpr |
protected void |
FilterExpr()
FilterExpr ::= PrimaryExpr | FilterExpr Predicate |
protected void |
FunctionCall()
FunctionCall ::= FunctionName '(' ( Argument ( ',' Argument)*)? ')' |
protected void |
IdKeyPattern()
IdKeyPattern ::= 'id' '(' Literal ')' | 'key' '(' Literal ',' Literal ')' (Also handle doc()) |
void |
initMatchPattern(XPath pathObj,
java.lang.String expression,
PrefixResolver namespaceContext)
Given an string, init an XPath object for pattern matches, in order that a parse doesn't have to be done each time the expression is evaluated. |
void |
initXPath(XPath pathObj,
java.lang.String expression,
PrefixResolver namespaceContext)
Given an string, init an XPath object for selections, in order that a parse doesn't have to be done each time the expression is evaluated. |
protected void |
Literal()
The value of the Literal is the sequence of characters inside the " or ' characters>. |
protected void |
LocationPath()
LocationPath ::= RelativeLocationPath | AbsoluteLocationPath |
protected void |
LocationPathPattern()
LocationPathPattern ::= '/' RelativePathPattern? | IdKeyPattern (('/' | '//') RelativePathPattern)? | '//'? RelativePathPattern |
protected int |
MultiplicativeExpr(int addPos)
XXXX. |
protected void |
NCName()
NCName ::= (Letter | '_') (NCNameChar)* NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender |
protected void |
NodeTest(int axesType)
NodeTest ::= WildcardName | NodeType '(' ')' | 'processing-instruction' '(' Literal ')' |
protected void |
Number()
Number ::= [0-9]+('.'[0-9]+)? | '.'[0-9]+ |
protected void |
NumberExpr()
NumberExpr ::= Expr |
protected void |
OrExpr()
OrExpr ::= AndExpr | OrExpr 'or' AndExpr |
protected void |
PathExpr()
PathExpr ::= LocationPath | FilterExpr | FilterExpr '/' RelativeLocationPath | FilterExpr '//' RelativeLocationPath |
protected void |
Pattern()
Pattern ::= LocationPathPattern | Pattern '|' LocationPathPattern |
protected void |
Predicate()
Predicate ::= '[' PredicateExpr ']' |
protected void |
PredicateExpr()
PredicateExpr ::= Expr |
protected void |
PrimaryExpr()
PrimaryExpr ::= VariableReference | '(' Expr ')' | Literal | Number | FunctionCall |
protected void |
QName()
QName ::= (Prefix ':')? LocalPart Prefix ::= NCName LocalPart ::= NCName |
protected int |
RelationalExpr(int addPos)
. |
protected void |
RelativeLocationPath()
RelativeLocationPath ::= Step | RelativeLocationPath '/' Step | AbbreviatedRelativeLocationPath |
protected void |
RelativePathPattern()
RelativePathPattern ::= StepPattern | RelativePathPattern '/' StepPattern | RelativePathPattern '//' StepPattern |
protected void |
Step()
Step ::= Basis Predicate* | AbbreviatedStep |
protected void |
StepPattern()
StepPattern ::= AbbreviatedNodeTestStep |
protected void |
StringExpr()
StringExpr ::= Expr |
protected void |
UnaryExpr()
XXXX. |
protected void |
UnionExpr()
The context of the right hand side expressions is the context of the left hand side expression. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public XPathProcessorImpl(XPathSupport callbacks)
callbacks
- The execution context.public XPathProcessorImpl()
Method Detail |
public void initXPath(XPath pathObj, java.lang.String expression, PrefixResolver namespaceContext) throws org.xml.sax.SAXException
pathObj
- The XPath object to be initialized.expresson
- A String representing the XPath.namespaceContext
- An object that is able to resolve prefixes in
the XPath to namespaces.public void initMatchPattern(XPath pathObj, java.lang.String expression, PrefixResolver namespaceContext) throws org.xml.sax.SAXException
pathObj
- The XPath object to be initialized.expresson
- A String representing the XPath.namespaceContext
- An object that is able to resolve prefixes in
the XPath to namespaces.protected java.lang.String dumpRemainingTokenQueue()
protected void Expr() throws org.xml.sax.SAXException
protected void OrExpr() throws org.xml.sax.SAXException
protected void AndExpr() throws org.xml.sax.SAXException
protected int EqualityExpr(int addPos) throws org.xml.sax.SAXException
protected int RelationalExpr(int addPos) throws org.xml.sax.SAXException
protected int AdditiveExpr(int addPos) throws org.xml.sax.SAXException
addPos
- The position where the op should be inserted.
AdditiveExpr ::= MultiplicativeExpr
| AdditiveExpr '+' MultiplicativeExpr
| AdditiveExpr '-' MultiplicativeExprprotected int MultiplicativeExpr(int addPos) throws org.xml.sax.SAXException
addPos
- The position where the op should be inserted.
MultiplicativeExpr ::= UnaryExpr
| MultiplicativeExpr MultiplyOperator UnaryExpr
| MultiplicativeExpr 'div' UnaryExpr
| MultiplicativeExpr 'mod' UnaryExpr
| MultiplicativeExpr 'quo' UnaryExprprotected void UnaryExpr() throws org.xml.sax.SAXException
protected void StringExpr() throws org.xml.sax.SAXException
protected void BooleanExpr() throws org.xml.sax.SAXException
protected void NumberExpr() throws org.xml.sax.SAXException
protected void UnionExpr() throws org.xml.sax.SAXException
protected void PathExpr() throws org.xml.sax.SAXException
protected void FilterExpr() throws org.xml.sax.SAXException
protected void PrimaryExpr() throws org.xml.sax.SAXException
protected void Argument() throws org.xml.sax.SAXException
protected void FunctionCall() throws org.xml.sax.SAXException
protected void LocationPath() throws org.xml.sax.SAXException
protected void RelativeLocationPath() throws org.xml.sax.SAXException
protected void Step() throws org.xml.sax.SAXException
protected void Basis() throws org.xml.sax.SAXException
protected int AxisName() throws org.xml.sax.SAXException
protected void NodeTest(int axesType) throws org.xml.sax.SAXException
protected void Predicate() throws org.xml.sax.SAXException
protected void PredicateExpr() throws org.xml.sax.SAXException
protected void QName() throws org.xml.sax.SAXException
protected void NCName()
protected void Literal() throws org.xml.sax.SAXException
protected void Number() throws org.xml.sax.SAXException
protected void Pattern() throws org.xml.sax.SAXException
protected void LocationPathPattern() throws org.xml.sax.SAXException
protected void IdKeyPattern() throws org.xml.sax.SAXException
protected void RelativePathPattern() throws org.xml.sax.SAXException
protected void StepPattern() throws org.xml.sax.SAXException
protected void AbbreviatedNodeTestStep() throws org.xml.sax.SAXException
public static void diagnoseXPathString(java.lang.String str) throws org.xml.sax.SAXException
public static void diagnoseXPathString2(java.lang.String str) throws org.xml.sax.SAXException
public static void diagnoseXPathString3(java.lang.String str) throws org.xml.sax.SAXException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |