public int getLocalIndex(String name) { if (name.equals("current")) { return CURRENT_NODE_INDEX; } else { return super.getLocalIndex(name); } } }
public int getLocalIndex(String name) { if (name.equals("current")) { return CURRENT_INDEX; } return super.getLocalIndex(name); }
public int getLocalIndex(String name) { if (name.equals("current")) { return CURRENT_INDEX; } return super.getLocalIndex(name); } }
public int getLocalIndex(String name) { if (name.equals("current")) { return CURRENT_INDEX; } return super.getLocalIndex(name); } }
public Instruction storeCurrentNode() { return _istoreCurrent != null ? _istoreCurrent : (_istoreCurrent = new ISTORE(getLocalIndex("current"))); }
public Instruction loadCurrentNode() { if (_iloadCurrent == null) { int idx = getLocalIndex("current"); if (idx > 0) _iloadCurrent = new ILOAD(idx); else _iloadCurrent = new ICONST(0); } return _iloadCurrent; }
/** * Translates reference into object of internal type <code>type</code>. * * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo */ public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type) { final int current = methodGen.getLocalIndex("current"); ConstantPoolGen cpg = classGen.getConstantPool(); InstructionList il = methodGen.getInstructionList(); // If no current, conversion is a top-level if (current < 0) { il.append(new PUSH(cpg, DTM.ROOT_NODE)); // push root node } else { il.append(new ILOAD(current)); } il.append(methodGen.loadDOM()); final int stringF = cpg.addMethodref(BASIS_LIBRARY_CLASS, "stringF", "(" + OBJECT_SIG + NODE_SIG + DOM_INTF_SIG + ")" + STRING_SIG); il.append(new INVOKESTATIC(stringF)); }
final int paramDom = stripSpace.getLocalIndex("dom"); final int paramCurrent = stripSpace.getLocalIndex("node"); final int paramType = stripSpace.getLocalIndex("type");
final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); final int current = methodGen.getLocalIndex("current");
_currentIndex = current.getIndex(); mainIL.append(new ILOAD(methodGen.getLocalIndex(NODE_PNAME))); current.setStart(mainIL.append(new ISTORE(_currentIndex)));
final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); final int current = methodGen.getLocalIndex("current");
final int current = methodGen.getLocalIndex("current");
LocalVariableGen domBuilder, newDom; final String className = classGen.getClassName(); final int current = methodGen.getLocalIndex("current");
final int current = methodGen.getLocalIndex("current");
public int getLocalIndex(String name) { if (name.equals("current")) { return CURRENT_INDEX; } return super.getLocalIndex(name); }
public int getLocalIndex(String name) { if (name.equals("current")) { return CURRENT_INDEX; } return super.getLocalIndex(name); } }
public int getLocalIndex(String name) { if (name.equals("current")) { return CURRENT_NODE_INDEX; } else { return super.getLocalIndex(name); } } }
public int getLocalIndex(String name) { if (name.equals("current")) { return CURRENT_INDEX; } return super.getLocalIndex(name); } }
public int getLocalIndex(String name) { if (name.equals("current")) { return CURRENT_INDEX; } return super.getLocalIndex(name); }
public Instruction loadCurrentNode() { if (_iloadCurrent == null) { int idx = getLocalIndex("current"); if (idx > 0) _iloadCurrent = new ILOAD(idx); else _iloadCurrent = new ICONST(0); } return _iloadCurrent; }