public class XPathParser extends lr_parser
| Modifier and Type | Field and Description |
|---|---|
protected static short[][] |
_action_table
Parse-action table.
|
protected static short[][] |
_production_table
Production table.
|
protected static short[][] |
_reduce_table
reduce_goto table. |
jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.SymbolTable |
_symbolTable
Reference to the symbol table.
|
protected jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.CUP$XPathParser$actions |
action_obj
Instance of action encapsulation class.
|
static jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.VariableRef |
DummyVarRef
Reference to non-existing variable.
|
static Vector |
EmptyArgs
Used by function calls with no args.
|
_done_parsing, _error_sync_size, action_tab, cur_token, lookahead, lookahead_pos, production_tab, reduce_tab, stack, tos| Constructor and Description |
|---|
XPathParser()
Default constructor.
|
XPathParser(Parser parser) |
XPathParser(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) |
jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.StepPattern |
createStepPattern(int axis,
Object test,
Vector predicates)
This method is similar to findNodeType(int, Object) except that it
creates a StepPattern instead of just returning a node type.
|
Symbol |
do_action(int act_num,
lr_parser parser,
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,
Object test) |
int |
getLineNumber() |
jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.QName |
getQName(String namespace,
String prefix,
String localname) |
jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.QName |
getQNameIgnoreDefaultNs(String name) |
protected void |
init_actions()
Action encapsulation object initializer.
|
jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.RelativeLocationPath |
insertStep(jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.Step step,
jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.RelativeLocationPath rlp) |
boolean |
isElementAxis(int axis)
Returns true if the axis applies to elements only.
|
Symbol |
parse(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(String message,
Object info)
Report a non fatal error (or warning).
|
void |
report_fatal_error(String message,
Object info)
Report a fatal error.
|
void |
setCallsNodeset(boolean flag) |
void |
setHasIdCall(boolean flag) |
void |
setMultiDocument(boolean flag) |
int |
start_production()
Indicates start production.
|
int |
start_state()
Indicates start state.
|
advance_lookahead, cur_err_token, debug_message, debug_parse, debug_reduce, debug_shift, debug_stack, done_parsing, dump_stack, error_recovery, error_sync_size, find_recovery_config, get_action, get_reduce, getScanner, parse_lookahead, parse, read_lookahead, restart_lookahead, scan, setScanner, shift_under_error, syntax_error, try_parse_ahead, unpackFromStrings, unrecovered_syntax_error, user_initprotected static final short[][] _production_table
protected static final short[][] _action_table
protected static final short[][] _reduce_table
reduce_goto table.protected jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.CUP$XPathParser$actions action_obj
public static final Vector EmptyArgs
public static final jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.VariableRef DummyVarRef
public jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.SymbolTable _symbolTable
public XPathParser()
public XPathParser(Scanner s)
public XPathParser(Parser parser)
public short[][] production_table()
production_table in class lr_parserpublic short[][] action_table()
action_table in class lr_parserlr_parser.get_action(int, int)public short[][] reduce_table()
reduce_goto table.reduce_table in class lr_parserlr_parser.get_reduce(int, int)protected void init_actions()
init_actions in class lr_parserpublic Symbol do_action(int act_num, lr_parser parser, Stack stack, int top) throws Exception
public int start_state()
start_state in class lr_parserpublic int start_production()
start_production in class lr_parserpublic int getLineNumber()
public jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.QName getQNameIgnoreDefaultNs(String name)
public jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.QName getQName(String namespace, String prefix, String localname)
public void setMultiDocument(boolean flag)
public void setCallsNodeset(boolean flag)
public void setHasIdCall(boolean flag)
public jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.StepPattern createStepPattern(int axis,
Object test,
Vector predicates)
public int findNodeType(int axis,
Object test)
public Symbol parse(String expression, int lineNumber) throws Exception
lineNumber - Line where the current expression is defined.external - Set to true if this expression is
compiled in a separate module.Exceptionpublic final void addError(ErrorMsg error)
public void report_error(String message, Object info)
lr_parserreport_error in class lr_parsermessage - an error message.info - an extra object reserved for use by specialized subclasses.public void report_fatal_error(String message, Object info)
lr_parserreport_fatal_error in class lr_parsermessage - an error message.info - an extra object reserved for use by specialized subclasses.public jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.RelativeLocationPath insertStep(jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.Step step,
jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.RelativeLocationPath rlp)
public boolean isElementAxis(int axis)
Copyright © 2018–2021 mhoffrogge. All rights reserved.