1 16 19 20 package org.apache.xalan.xsltc.compiler; 21 22 import java.util.Vector ; 23 24 import org.apache.bcel.generic.ConstantPoolGen; 25 import org.apache.bcel.generic.INVOKEINTERFACE; 26 import org.apache.bcel.generic.InstructionList; 27 import org.apache.xalan.xsltc.compiler.util.ClassGenerator; 28 import org.apache.xalan.xsltc.compiler.util.MethodGenerator; 29 30 33 final class NamespaceUriCall extends NameBase { 34 35 38 public NamespaceUriCall(QName fname) { 39 super(fname); 40 } 41 42 45 public NamespaceUriCall(QName fname, Vector arguments) { 46 super(fname, arguments); 47 } 48 49 53 public void translate(ClassGenerator classGen, 54 MethodGenerator methodGen) { 55 final ConstantPoolGen cpg = classGen.getConstantPool(); 56 final InstructionList il = methodGen.getInstructionList(); 57 58 final int getNamespace = cpg.addInterfaceMethodref(DOM_INTF, 60 "getNamespaceName", 61 "(I)"+STRING_SIG); 62 super.translate(classGen, methodGen); 63 il.append(new INVOKEINTERFACE(getNamespace, 2)); 64 } 65 } 66 | Popular Tags |