Additional top-level class in compilation unit: parser_actions.
| Modifier and Type | Field and Description |
|---|---|
| protected static final short[][] | _action_table
Parse-action table. |
| private String | _expression
String representation of the expression being parsed. |
| private XMLLimitAnalyzer | |
| private int | _lineNumber
Line number where this expression/pattern was declared. |
| private Parser | _parser
Reference to the Parser class. |
| protected static final short[][] | _production_table
Production table. |
| protected static final short[][] | _reduce_table
|
| public SymbolTable | _symbolTable
Reference to the symbol table. |
| private XMLSecurityManager | |
| private XSLTC | |
| protected parser_actions | action_obj
Instance of action encapsulation class. |
| public static final VariableRef | DummyVarRef
Reference to non-existing variable. |
| public static final List | EmptyArgs
Used by function calls with no args. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public short[][] | action_table()
Implements abstract com. Access to parse-action table. |
| public final void | |
| public StepPattern | createStepPattern(int axis, Object test, List<Predicate> predicates)
This method is similar to findNodeType(int, Object) except that it creates a StepPattern instead of just returning a node type. |
| public Symbol | do_action(int act_num, lr_parser parser, Stack<Symbol> stack, int top)
Implements abstract com. Invoke a user supplied parse action. |
| public int | |
| public int | error_sym()
Implements abstract com.
|
| public int | |
| public int | |
| public QName | |
| public QName | |
| protected void | init_actions()
Implements abstract com. Action encapsulation object initializer. |
| public RelativeLocationPath | |
| public boolean | |
| pack-priv final SyntaxTreeNode | lookupName(QName
Name of the symbol being looked up. name)Lookup a variable or parameter in the symbol table given its name. |
| public Symbol | |
| public short[][] | production_table()
Implements abstract com. Access to production table. |
| public short[][] | reduce_table()
Implements abstract com. Access to |
| public void | report_error(String message, Object info)
Overrides com. Report a non fatal error (or warning). |
| public void | report_fatal_error(String message, Object info)
Overrides com. Report a fatal error. |
| public void | |
| public void | |
| public void | |
| public int | start_production()
Implements abstract com. Indicates start production. |
| public int | start_state()
Implements abstract com. Indicates start state. |
| _action_table | back to summary |
|---|---|
| protected static final short[][] _action_table Parse-action table. | |
| _expression | back to summary |
|---|---|
| private String _expression String representation of the expression being parsed. | |
| _limitAnalyzer | back to summary |
|---|---|
| private XMLLimitAnalyzer _limitAnalyzer | |
| _lineNumber | back to summary |
|---|---|
| private int _lineNumber Line number where this expression/pattern was declared. | |
| _parser | back to summary |
|---|---|
| private Parser _parser Reference to the Parser class. | |
| _production_table | back to summary |
|---|---|
| protected static final short[][] _production_table Production table. | |
| _reduce_table | back to summary |
|---|---|
| protected static final short[][] _reduce_table
| |
| _symbolTable | back to summary |
|---|---|
| public SymbolTable _symbolTable Reference to the symbol table. | |
| _xmlSM | back to summary |
|---|---|
| private XMLSecurityManager _xmlSM | |
| _xsltc | back to summary |
|---|---|
| private XSLTC _xsltc | |
| action_obj | back to summary |
|---|---|
| protected parser_actions action_obj Instance of action encapsulation class. | |
| DummyVarRef | back to summary |
|---|---|
| public static final VariableRef DummyVarRef Reference to non-existing variable. | |
| EmptyArgs | back to summary |
|---|---|
| public static final List<Expression> EmptyArgs Used by function calls with no args. | |
| XPathParser | back to summary |
|---|---|
| public XPathParser() Default constructor. | |
| XPathParser | back to summary |
|---|---|
| public XPathParser(Scanner s) Constructor which sets the default scanner. | |
| XPathParser | back to summary |
|---|---|
| public XPathParser(Parser parser) | |
| action_table | back to summary |
|---|---|
| public short[][] action_table() Implements abstract com. Access to parse-action table. | |
| addError | back to summary |
|---|---|
| public final void addError(ErrorMsg error) | |
| createStepPattern | back to summary |
|---|---|
| public StepPattern createStepPattern(int axis, Object test, List<Predicate> predicates) This method is similar to findNodeType(int, Object) except that it creates a StepPattern instead of just returning a node type. It also differs in the way it handles "{uri}:*" and "{uri}:@*". The last two patterns are expanded as "*[namespace-uri() = 'uri']" and "@*[namespace-uri() = 'uri']", respectively. This expansion considerably simplifies the grouping of patterns in the Mode class. For this expansion to be correct, the priority of the pattern/template must be set to -0.25 (when no other predicates are present). | |
| do_action | back to summary |
|---|---|
| public Symbol do_action(int act_num, lr_parser parser, Stack<Symbol> stack, int top) throws Exception Implements abstract com. Invoke a user supplied parse action. | |
| EOF_sym | back to summary |
|---|---|
| public int EOF_sym() Implements abstract com.
| |
| error_sym | back to summary |
|---|---|
| public int error_sym() Implements abstract com.
| |
| findNodeType | back to summary |
|---|---|
| public int findNodeType(int axis, Object test) | |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() | |
| getQName | back to summary |
|---|---|
| public QName getQName(String namespace, String prefix, String localname) | |
| getQNameIgnoreDefaultNs | back to summary |
|---|---|
| public QName getQNameIgnoreDefaultNs(String name) | |
| init_actions | back to summary |
|---|---|
| protected void init_actions() Implements abstract com. Action encapsulation object initializer. | |
| insertStep | back to summary |
|---|---|
| public RelativeLocationPath insertStep(Step step, RelativeLocationPath rlp) | |
| isElementAxis | back to summary |
|---|---|
| public boolean isElementAxis(int axis) Returns true if the axis applies to elements only. The axes child, attribute, namespace, descendant result in non-empty nodesets only if the context node is of type element. | |
| lookupName | back to summary |
|---|---|
| pack-priv final SyntaxTreeNode lookupName(QName name) Lookup a variable or parameter in the symbol table given its name.
| |
| parse | back to summary |
|---|---|
| public Symbol parse(String expression, int lineNumber) throws Exception Parse the expression passed to the current scanner. If this expression contains references to local variables and it will be compiled in an external module (not in the main class) request the current template to create a new variable stack frame.
| |
| production_table | back to summary |
|---|---|
| public short[][] production_table() Implements abstract com. Access to production table. | |
| reduce_table | back to summary |
|---|---|
| public short[][] reduce_table() Implements abstract com. Access to | |
| report_error | back to summary |
|---|---|
| public void report_error(String message, Object info) Overrides com. Doc from com. Report a non fatal error (or warning). This method takes a message string and an additional object (to be used by specializations implemented in subclasses). Here in the base class a very simple implementation is provided which simply prints the message to System.err. | |
| report_fatal_error | back to summary |
|---|---|
| public void report_fatal_error(String message, Object info) Overrides com. Doc from com. Report a fatal error. This method takes a message string and an additional object (to be used by specializations implemented in subclasses). Here in the base class a very simple implementation is provided which reports the error then throws an exception. | |
| setCallsNodeset | back to summary |
|---|---|
| public void setCallsNodeset(boolean flag) | |
| setHasIdCall | back to summary |
|---|---|
| public void setHasIdCall(boolean flag) | |
| setMultiDocument | back to summary |
|---|---|
| public void setMultiDocument(boolean flag) | |
| start_production | back to summary |
|---|---|
| public int start_production() Implements abstract com. Indicates start production. | |
| start_state | back to summary |
|---|---|
| public int start_state() Implements abstract com. Indicates start state. | |