1 16 19 20 package com.sun.org.apache.xalan.internal.xsltc.compiler; 21 22 import java.util.Vector ; 23 24 import com.sun.org.apache.bcel.internal.generic.ConstantPoolGen; 25 import com.sun.org.apache.bcel.internal.generic.INVOKEINTERFACE; 26 import com.sun.org.apache.bcel.internal.generic.InstructionList; 27 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator; 28 import com.sun.org.apache.xalan.internal.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 |