|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xpath.XPathProcessorImpl
Tokenizes and parses XPath expressions. This should really be named XPathParserImpl, and may be renamed in the future.
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 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 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 SAXException
protected void OrExpr() throws SAXException
protected void AndExpr() throws SAXException
protected int EqualityExpr(int addPos) throws SAXException
protected int RelationalExpr(int addPos) throws SAXException
protected int AdditiveExpr(int addPos) throws SAXException
addPos
- The position where the op should be inserted.
AdditiveExpr ::= MultiplicativeExpr
| AdditiveExpr '+' MultiplicativeExpr
| AdditiveExpr '-' MultiplicativeExprprotected int MultiplicativeExpr(int addPos) throws 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 SAXException
protected void StringExpr() throws SAXException
protected void BooleanExpr() throws SAXException
protected void NumberExpr() throws SAXException
protected void UnionExpr() throws SAXException
protected void PathExpr() throws SAXException
protected void FilterExpr() throws SAXException
protected void PrimaryExpr() throws SAXException
protected void Argument() throws SAXException
protected void FunctionCall() throws SAXException
protected void LocationPath() throws SAXException
protected void RelativeLocationPath() throws SAXException
protected void Step() throws SAXException
protected void Basis() throws SAXException
protected int AxisName() throws SAXException
protected void NodeTest(int axesType) throws SAXException
protected void Predicate() throws SAXException
protected void PredicateExpr() throws SAXException
protected void QName() throws SAXException
protected void NCName()
protected void Literal() throws SAXException
protected void Number() throws SAXException
protected void Pattern() throws SAXException
protected void LocationPathPattern() throws SAXException
protected void IdKeyPattern() throws SAXException
protected void RelativePathPattern() throws SAXException
protected void StepPattern() throws SAXException
protected void AbbreviatedNodeTestStep() throws SAXException
public static void diagnoseXPathString(java.lang.String str) throws SAXException
public static void diagnoseXPathString2(java.lang.String str) throws SAXException
public static void diagnoseXPathString3(java.lang.String str) throws SAXException
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |