FileDocCategorySizeDatePackage
NodeCounterGenerator.javaAPI DocJava SE 5 API2239Fri Aug 26 14:55:38 BST 2005com.sun.org.apache.xalan.internal.xsltc.compiler.util

NodeCounterGenerator

public final class NodeCounterGenerator extends ClassGenerator
This class implements auxiliary classes needed to compile patterns in xsl:number. These classes inherit from {Any,Single,Multiple}NodeCounter and override the matchFrom and matchCount methods.
author
Jacek Ambroziak
author
Santiago Pericas-Geertsen

Fields Summary
private Instruction
_aloadTranslet
Constructors Summary
public NodeCounterGenerator(String className, String superClassName, String fileName, int accessFlags, String[] interfaces, Stylesheet stylesheet)

	super(className, superClassName, fileName,
	      accessFlags, interfaces, stylesheet);
    
Methods Summary
public booleanisExternal()
Returns true since this class is external to the translet.

	return true;
    
public com.sun.org.apache.bcel.internal.generic.InstructionloadTranslet()
The index of the translet pointer within the execution of matchFrom or matchCount. Overridden from ClassGenerator.

	return _aloadTranslet;
    
public voidsetTransletIndex(int index)
Set the index of the register where "this" (the pointer to the translet) is stored.

	_aloadTranslet = new ALOAD(index);