FileDocCategorySizeDatePackage
NameCall.javaAPI DocJava SE 6 API2089Tue Jun 10 00:22:28 BST 2008com.sun.org.apache.xalan.internal.xsltc.compiler

NameCall

public final class NameCall extends NameBase
author
Jacek Ambroziak
author
Santiago Pericas-Geertsen
author
Morten Jorgensen

Fields Summary
Constructors Summary
public NameCall(QName fname)
Handles calls with no parameter (current node is implicit parameter).

	super(fname);
    
public NameCall(QName fname, Vector arguments)
Handles calls with one parameter (either node or node-set).

	super(fname, arguments);
    
Methods Summary
public voidtranslate(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen)
Translate code that leaves a node's QName (as a String) on the stack

	final ConstantPoolGen cpg = classGen.getConstantPool();
	final InstructionList il = methodGen.getInstructionList();

	final int getName = cpg.addInterfaceMethodref(DOM_INTF,
						      GET_NODE_NAME,
						      GET_NODE_NAME_SIG);
	super.translate(classGen, methodGen);
	il.append(new INVOKEINTERFACE(getName, 2));