public class XPathParser
extends java_cup.runtime.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. |
org.apache.xalan.xsltc.compiler.SymbolTable |
_symbolTable
Reference to the symbol table.
|
protected org.apache.xalan.xsltc.compiler.CUP$XPathParser$actions |
action_obj
Instance of action encapsulation class.
|
static org.apache.xalan.xsltc.compiler.VariableRef |
DummyVarRef
Reference to non-existing variable.
|
static 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,
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.
|
java_cup.runtime.Symbol |
do_action(int act_num,
java_cup.runtime.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() |
org.apache.xalan.xsltc.compiler.QName |
getQName(String namespace,
String prefix,
String localname) |
org.apache.xalan.xsltc.compiler.QName |
getQNameIgnoreDefaultNs(String name) |
protected void |
init_actions()
Action encapsulation object initializer.
|
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(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) |
void |
report_fatal_error(String message,
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.
|
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_init
protected static final short[][] _production_table
protected static final short[][] _action_table
protected static final short[][] _reduce_table
reduce_goto
table.protected org.apache.xalan.xsltc.compiler.CUP$XPathParser$actions action_obj
public static final 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_parser
public short[][] action_table()
action_table
in class java_cup.runtime.lr_parser
public short[][] reduce_table()
reduce_goto
table.reduce_table
in class java_cup.runtime.lr_parser
protected void init_actions()
init_actions
in class java_cup.runtime.lr_parser
public java_cup.runtime.Symbol do_action(int act_num, java_cup.runtime.lr_parser parser, Stack stack, int top) throws Exception
do_action
in class java_cup.runtime.lr_parser
Exception
public int start_state()
start_state
in class java_cup.runtime.lr_parser
public int start_production()
start_production
in class java_cup.runtime.lr_parser
public int EOF_sym()
EOF
Symbol index.EOF_sym
in class java_cup.runtime.lr_parser
public int error_sym()
error
Symbol index.error_sym
in class java_cup.runtime.lr_parser
public int getLineNumber()
public org.apache.xalan.xsltc.compiler.QName getQNameIgnoreDefaultNs(String name)
public org.apache.xalan.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 org.apache.xalan.xsltc.compiler.StepPattern createStepPattern(int axis, Object test, Vector predicates)
public int findNodeType(int axis, Object test)
public java_cup.runtime.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.Exception
public final void addError(ErrorMsg error)
public void report_error(String message, Object info)
report_error
in class java_cup.runtime.lr_parser
public void report_fatal_error(String message, Object info)
report_fatal_error
in class java_cup.runtime.lr_parser
public 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 © 2012 JBoss by Red Hat. All Rights Reserved.