📄 xpathparser.java
字号:
"\001\001\000\002\001\001\000\002\001\001\000\002\001" + "\001\000\002\001\001\000\002\001\001\000\002\001\001" + "\000\002\001\001\000\002\001\001\000\002\001\001\000" + "\006\007\053\045\177\001\001\000\002\001\001\000\002" + "\001\001\000\002\001\001\000\002\001\001\000\002\001" + "\001\000\002\001\001\000\002\001\001\000\002\001\001" + "\000\002\001\001\000\006\047\164\051\166\001\001\000" + "\002\001\001\000\002\001\001\000\002\001\001\000\002" + "\001\001\000\002\001\001\000\002\001\001\000\002\001" + "\001\000\002\001\001\000\002\001\001\000\002\001\001" + "\000\002\001\001\000\002\001\001\000\002\001\001\000" + "\020\011\155\026\136\033\106\034\147\047\153\052\100" + "\053\077\001\001\000\020\011\154\026\136\033\106\034" + "\147\047\153\052\100\053\077\001\001\000\002\001\001" + "\000\002\001\001\000\002\001\001\000\052\006\120\010" + "\127\011\117\020\163\021\125\022\073\023\121\024\143" + "\025\123\026\136\027\146\030\134\031\107\032\072\033" + "\106\034\147\047\150\050\116\052\100\053\077\001\001" + "\000\052\006\120\010\127\011\117\020\162\021\125\022" + "\073\023\121\024\143\025\123\026\136\027\146\030\134" + "\031\107\032\072\033\106\034\147\047\150\050\116\052" + "\100\053\077\001\001\000\052\006\120\010\127\011\117" + "\020\161\021\125\022\073\023\121\024\143\025\123\026" + "\136\027\146\030\134\031\107\032\072\033\106\034\147" + "\047\150\050\116\052\100\053\077\001\001\000\002\001" + "\001\000\002\001\001\000\002\001\001\000\002\001\001" + "\000\002\001\001\000\002\001\001\000\002\001\001\000" + "\002\001\001\000\024\011\117\026\136\027\174\030\134" + "\033\106\034\147\047\153\052\100\053\077\001\001\000" + "\024\011\117\026\136\027\173\030\134\033\106\034\147" + "\047\153\052\100\053\077\001\001\000\002\001\001\000" + "\002\001\001\000\050\006\120\010\127\011\117\021\125" + "\022\073\023\121\024\176\025\123\026\136\027\146\030" + "\134\031\107\032\072\033\106\034\147\047\150\050\116" + "\052\100\053\077\001\001\000\002\001\001\000\002\001" + "\001\000\074\004\203\005\202\006\120\010\127\011\117" + "\012\101\013\075\014\104\015\063\016\111\017\145\020" + "\113\021\125\022\073\023\121\024\143\025\123\026\136" + "\027\146\030\134\031\107\032\072\033\106\034\147\046" + "\204\047\150\050\116\052\100\053\077\001\001\000\002" + "\001\001\000\002\001\001\000\002\001\001\000\002\001" + "\001\000\002\001\001\000\074\004\203\005\202\006\120" + "\010\127\011\117\012\101\013\075\014\104\015\063\016" + "\111\017\145\020\113\021\125\022\073\023\121\024\143" + "\025\123\026\136\027\146\030\134\031\107\032\072\033" + "\106\034\147\046\207\047\150\050\116\052\100\053\077" + "\001\001\000\002\001\001\000\054\006\120\010\127\011" + "\117\017\213\020\113\021\125\022\073\023\121\024\143" + "\025\123\026\136\027\146\030\134\031\107\032\072\033" + "\106\034\147\047\150\050\116\052\100\053\077\001\001" + "\000\054\006\120\010\127\011\117\017\212\020\113\021" + "\125\022\073\023\121\024\143\025\123\026\136\027\146" + "\030\134\031\107\032\072\033\106\034\147\047\150\050" + "\116\052\100\053\077\001\001\000\002\001\001\000\002" + "\001\001\000\002\001\001\000\060\006\120\010\127\011" + "\117\015\230\016\111\017\145\020\113\021\125\022\073" + "\023\121\024\143\025\123\026\136\027\146\030\134\031" + "\107\032\072\033\106\034\147\047\150\050\116\052\100" + "\053\077\001\001\000\060\006\120\010\127\011\117\015" + "\217\016\111\017\145\020\113\021\125\022\073\023\121" + "\024\143\025\123\026\136\027\146\030\134\031\107\032" + "\072\033\106\034\147\047\150\050\116\052\100\053\077" + "\001\001\000\002\001\001\000\056\006\120\010\127\011" + "\117\016\227\017\145\020\113\021\125\022\073\023\121" + "\024\143\025\123\026\136\027\146\030\134\031\107\032" + "\072\033\106\034\147\047\150\050\116\052\100\053\077" + "\001\001\000\056\006\120\010\127\011\117\016\226\017" + "\145\020\113\021\125\022\073\023\121\024\143\025\123" + "\026\136\027\146\030\134\031\107\032\072\033\106\034" + "\147\047\150\050\116\052\100\053\077\001\001\000\056" + "\006\120\010\127\011\117\016\225\017\145\020\113\021" + "\125\022\073\023\121\024\143\025\123\026\136\027\146" + "\030\134\031\107\032\072\033\106\034\147\047\150\050" + "\116\052\100\053\077\001\001\000\056\006\120\010\127" + "\011\117\016\224\017\145\020\113\021\125\022\073\023" + "\121\024\143\025\123\026\136\027\146\030\134\031\107" + "\032\072\033\106\034\147\047\150\050\116\052\100\053" + "\077\001\001\000\002\001\001\000\002\001\001\000\002" + "\001\001\000\002\001\001\000\002\001\001\000\064\006" + "\120\010\127\011\117\013\232\014\104\015\063\016\111" + "\017\145\020\113\021\125\022\073\023\121\024\143\025" + "\123\026\136\027\146\030\134\031\107\032\072\033\106" + "\034\147\047\150\050\116\052\100\053\077\001\001\000" + "\002\001\001\000\062\006\120\010\127\011\117\014\234" + "\015\063\016\111\017\145\020\113\021\125\022\073\023" + "\121\024\143\025\123\026\136\027\146\030\134\031\107" + "\032\072\033\106\034\147\047\150\050\116\052\100\053" + "\077\001\001\000\002\001\001\000\002\001\001\000\006" + "\007\053\045\237\001\001\000\002\001\001\000\002\001" + "\001\000\002\001\001\000\002\001\001\000\002\001\001" + "\000\002\001\001\000\002\001\001\000\002\001\001\000" + "\002\001\001\000\002\001\001\000\002\001\001\000\002" + "\001\001\000\002\001\001\000\002\001\001\000\002\001" + "\001\000\002\001\001\000\002\001\001\000\002\001\001" + "\000\002\001\001\000\002\001\001\000\002\001\001\000" + "\020\040\031\041\267\042\023\043\052\044\010\047\051" + "\054\021\001\001\000\020\040\031\041\266\042\023\043" + "\052\044\010\047\051\054\021\001\001\000\002\001\001" + "\000\002\001\001\000\002\001\001\000\006\007\053\045" + "\274\001\001\000\006\007\053\045\273\001\001\000\002" + "\001\001\000\002\001\001\000\020\040\031\041\300\042" + "\023\043\052\044\010\047\051\054\021\001\001\000\020" + "\040\031\041\277\042\023\043\052\044\010\047\051\054" + "\021\001\001\000\002\001\001\000\002\001\001\000\002" + "\001\001\000\002\001\001\000\002\001\001\000\002\001" + "\001\000\026\035\016\036\306\037\006\040\031\041\025" + "\042\023\043\052\044\010\047\051\054\021\001\001\000" + "\002\001\001\000\002\001\001\000\002\001\001" }); /** Access to <code>reduce_goto</code> table. */ public short[][] reduce_table() {return _reduce_table;} /** Instance of action encapsulation class. */ protected CUP$XPathParser$actions action_obj; /** Action encapsulation object initializer. */ protected void init_actions() { action_obj = new CUP$XPathParser$actions(this); } /** Invoke a user supplied parse action. */ public com.sun.java_cup.internal.runtime.Symbol do_action( int act_num, com.sun.java_cup.internal.runtime.lr_parser parser, java.util.Stack stack, int top) throws java.lang.Exception { /* call code in generated class */ return action_obj.CUP$XPathParser$do_action(act_num, parser, stack, top); } /** Indicates start state. */ public int start_state() {return 0;} /** Indicates start production. */ public int start_production() {return 0;} /** <code>EOF</code> Symbol index. */ public int EOF_sym() {return 0;} /** <code>error</code> Symbol index. */ public int error_sym() {return 1;} /** * Used by function calls with no args. */ static public final Vector EmptyArgs = new Vector(0); /** * Reference to non-existing variable. */ static public final VariableRef DummyVarRef = null; /** * Reference to the Parser class. */ private Parser _parser; private XSLTC _xsltc; /** * String representation of the expression being parsed. */ private String _expression; /** * Line number where this expression/pattern was declared. */ private int _lineNumber = 0; /** * Reference to the symbol table. */ public SymbolTable _symbolTable; public XPathParser(Parser parser) { _parser = parser; _xsltc = parser.getXSLTC(); _symbolTable = parser.getSymbolTable(); } public int getLineNumber() { return _lineNumber; } public QName getQNameIgnoreDefaultNs(String name) { return _parser.getQNameIgnoreDefaultNs(name); } public QName getQName(String namespace, String prefix, String localname) { return _parser.getQName(namespace, prefix, localname); } public void setMultiDocument(boolean flag) { _xsltc.setMultiDocument(flag); } public void setCallsNodeset(boolean flag) { _xsltc.setCallsNodeset(flag); } public void setHasIdCall(boolean flag) { _xsltc.setHasIdCall(flag); } /** * 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). */ public StepPattern createStepPattern(int axis, Object test, Vector predicates) { int nodeType; if (test == null) { // "*" nodeType = (axis == Axis.ATTRIBUTE) ? NodeTest.ATTRIBUTE : (axis == Axis.NAMESPACE) ? -1 : NodeTest.ELEMENT; return new StepPattern(axis, nodeType, predicates); } else if (test instanceof Integer) { nodeType = ((Integer) test).intValue(); return new StepPattern(axis, nodeType, predicates); } else { QName name = (QName)test; boolean setPriority = false; if (axis == Axis.NAMESPACE) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -