Top Description Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.compiler.util

public final Class NodeCounterGenerator

extends ClassGenerator
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.ALOAD, .Instruction, com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet

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.
Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Modifier and TypeField and Description
private Instruction
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator:
INVALID_INDEXTRANSLET_INDEX

Constructor Summary

AccessConstructor and Description
public
NodeCounterGenerator(String className, String superClassName, String fileName, int accessFlags, String[] interfaces, Stylesheet stylesheet)

Method Summary

Modifier and TypeMethod and Description
public boolean
isExternal()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator.isExternal.

Returns true since this class is external to the translet.
public Instruction
loadTranslet()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator.loadTranslet.

The index of the translet pointer within the execution of matchFrom or matchCount.
public void
setTransletIndex(int index)

Set the index of the register where "this" (the pointer to the translet) is stored.

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator:
addMethodgetApplyTemplatesSiggetApplyTemplatesSigForImportgetClassNamegetDOMClassgetDOMClassSiggetParsergetStylesheet

Field Detail

_aloadTransletback to summary
private Instruction _aloadTranslet

Hides com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator._aloadTranslet.

Constructor Detail

NodeCounterGeneratorback to summary
public NodeCounterGenerator(String className, String superClassName, String fileName, int accessFlags, String[] interfaces, Stylesheet stylesheet)

Method Detail

isExternalback to summary
public boolean isExternal()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator.isExternal.

Returns true since this class is external to the translet.

loadTransletback to summary
public Instruction loadTranslet()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator.loadTranslet.

The index of the translet pointer within the execution of matchFrom or matchCount. Overridden from ClassGenerator.

setTransletIndexback to summary
public void setTransletIndex(int index)

Set the index of the register where "this" (the pointer to the translet) is stored.