public class XPathParser
extends java_cup.runtime.lr_parser
| Modifier and Type | Field and Description |
|---|---|
org.apache.xalan.xsltc.compiler.SymbolTable |
_symbolTable
Reference to the symbol table.
|
static org.apache.xalan.xsltc.compiler.VariableRef |
DummyVarRef
Reference to non-existing variable.
|
static java.util.Vector |
EmptyArgs
Used by function calls with no args.
|
| Constructor and Description |
|---|
XPathParser()
Default constructor.
|
XPathParser(Parser parser) |
XPathParser(java_cup.runtime.Scanner s)
Constructor which sets the default scanner.
|
| Modifier and Type | Method and Description |
|---|---|
short[][] |
action_table()
Access to parse-action table.
|
void |
addError(ErrorMsg error) |
org.apache.xalan.xsltc.compiler.StepPattern |
createStepPattern(int axis,
java.lang.Object test,
java.util.Vector predicates)
This method is similar to findNodeType(int, Object) except that it
creates a StepPattern instead of just returning a node type.
|
java_cup.runtime.Symbol |
do_action(int act_num,
java_cup.runtime.lr_parser parser,
java.util.Stack stack,
int top)
Invoke a user supplied parse action.
|
int |
EOF_sym()
EOF Symbol index. |
int |
error_sym()
error Symbol index. |
int |
findNodeType(int axis,
java.lang.Object test) |
int |
getLineNumber() |
org.apache.xalan.xsltc.compiler.QName |
getQName(java.lang.String namespace,
java.lang.String prefix,
java.lang.String localname) |
org.apache.xalan.xsltc.compiler.QName |
getQNameIgnoreDefaultNs(java.lang.String name) |
org.apache.xalan.xsltc.compiler.RelativeLocationPath |
insertStep(org.apache.xalan.xsltc.compiler.Step step,
org.apache.xalan.xsltc.compiler.RelativeLocationPath rlp) |
boolean |
isElementAxis(int axis)
Returns true if the axis applies to elements only.
|
java_cup.runtime.Symbol |
parse(java.lang.String expression,
int lineNumber)
Parse the expression passed to the current scanner.
|
short[][] |
production_table()
Access to production table.
|
short[][] |
reduce_table()
Access to
reduce_goto table. |
void |
report_error(java.lang.String message,
java.lang.Object info) |
void |
report_fatal_error(java.lang.String message,
java.lang.Object info) |
void |
setCallsNodeset(boolean flag) |
void |
setHasIdCall(boolean flag) |
void |
setMultiDocument(boolean flag) |
int |
start_production()
Indicates start production.
|
int |
start_state()
Indicates start state.
|
public static final java.util.Vector EmptyArgs
public static final org.apache.xalan.xsltc.compiler.VariableRef DummyVarRef
public org.apache.xalan.xsltc.compiler.SymbolTable _symbolTable
public XPathParser()
public XPathParser(java_cup.runtime.Scanner s)
public XPathParser(Parser parser)
public short[][] production_table()
production_table in class java_cup.runtime.lr_parserpublic short[][] action_table()
action_table in class java_cup.runtime.lr_parserpublic short[][] reduce_table()
reduce_goto table.reduce_table in class java_cup.runtime.lr_parserpublic java_cup.runtime.Symbol do_action(int act_num,
java_cup.runtime.lr_parser parser,
java.util.Stack stack,
int top)
throws java.lang.Exception
do_action in class java_cup.runtime.lr_parserjava.lang.Exceptionpublic int start_state()
start_state in class java_cup.runtime.lr_parserpublic int start_production()
start_production in class java_cup.runtime.lr_parserpublic int EOF_sym()
EOF Symbol index.EOF_sym in class java_cup.runtime.lr_parserpublic int error_sym()
error Symbol index.error_sym in class java_cup.runtime.lr_parserpublic int getLineNumber()
public org.apache.xalan.xsltc.compiler.QName getQNameIgnoreDefaultNs(java.lang.String name)
public org.apache.xalan.xsltc.compiler.QName getQName(java.lang.String namespace,
java.lang.String prefix,
java.lang.String localname)
public void setMultiDocument(boolean flag)
public void setCallsNodeset(boolean flag)
public void setHasIdCall(boolean flag)
public org.apache.xalan.xsltc.compiler.StepPattern createStepPattern(int axis,
java.lang.Object test,
java.util.Vector predicates)
public int findNodeType(int axis,
java.lang.Object test)
public java_cup.runtime.Symbol parse(java.lang.String expression,
int lineNumber)
throws java.lang.Exception
lineNumber - Line where the current expression is defined.external - Set to true if this expression is
compiled in a separate module.java.lang.Exceptionpublic final void addError(ErrorMsg error)
public void report_error(java.lang.String message,
java.lang.Object info)
report_error in class java_cup.runtime.lr_parserpublic void report_fatal_error(java.lang.String message,
java.lang.Object info)
report_fatal_error in class java_cup.runtime.lr_parserpublic org.apache.xalan.xsltc.compiler.RelativeLocationPath insertStep(org.apache.xalan.xsltc.compiler.Step step,
org.apache.xalan.xsltc.compiler.RelativeLocationPath rlp)
public boolean isElementAxis(int axis)
Copyright © 2014 Apache XML Project. All Rights Reserved.