public class XPathParser
extends java_cup.runtime.lr_parser
| Modifier and Type | Field and Description | 
|---|---|
| protected static short[][] | _action_tableParse-action table. | 
| protected static short[][] | _production_tableProduction table. | 
| protected static short[][] | _reduce_tablereduce_gototable. | 
| org.apache.xalan.xsltc.compiler.SymbolTable | _symbolTableReference to the symbol table. | 
| protected org.apache.xalan.xsltc.compiler.CUP$XPathParser$actions | action_objInstance of action encapsulation class. | 
| static org.apache.xalan.xsltc.compiler.VariableRef | DummyVarRefReference to non-existing variable. | 
| static Vector | EmptyArgsUsed by function calls with no args. | 
| Constructor and Description | 
|---|
| XPathParser()Default constructor. | 
| 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()EOFSymbol index. | 
| int | error_sym()errorSymbol 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. | 
| 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_gototable. | 
| 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. | 
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 short[][] production_table()
public short[][] action_table()
public short[][] reduce_table()
reduce_goto table.protected void init_actions()
public java_cup.runtime.Symbol do_action(int act_num,
                                         java_cup.runtime.lr_parser parser,
                                         Stack stack,
                                         int top)
                                  throws Exception
Exceptionpublic int start_state()
public int start_production()
public int EOF_sym()
EOF Symbol index.public int error_sym()
error Symbol index.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 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 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 © 2018 JBoss by Red Hat. All rights reserved.