org.apache.xalan.xsltc.compiler.util
Class NodeCounterGenerator

org.apache.xalan.xsltc.compiler.util.ClassGenerator
  |
  +--org.apache.xalan.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.


Constructor Summary
NodeCounterGenerator(java.lang.String className, java.lang.String superClassName, java.lang.String fileName, int accessFlags, java.lang.String[] interfaces, Stylesheet stylesheet)
           
 
Method Summary
 org.apache.xalan.xsltc.compiler.util.Instruction aloadTranslet()
          The index of the translet pointer within the execution of matchFrom or matchCount.
 boolean isExternal()
          Returns true since this class is external to the translet.
 void setTransletIndex(int index)
          Set the index of the register where "this" (the pointer to the translet) is stored.
 
Methods inherited from class org.apache.xalan.xsltc.compiler.util.ClassGenerator
getApplyTemplatesSig, getClassName, getDOMClass, getDOMClassSig, getParser, getStylesheet, loadTranslet
 

Constructor Detail

NodeCounterGenerator

public NodeCounterGenerator(java.lang.String className,
                            java.lang.String superClassName,
                            java.lang.String fileName,
                            int accessFlags,
                            java.lang.String[] interfaces,
                            Stylesheet stylesheet)
Method Detail

setTransletIndex

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

aloadTranslet

public org.apache.xalan.xsltc.compiler.util.Instruction aloadTranslet()
The index of the translet pointer within the execution of matchFrom or matchCount. Overridden from ClassGenerator.

isExternal

public boolean isExternal()
Returns true since this class is external to the translet.
Overrides:
isExternal in class ClassGenerator


Copyright © 2000 Apache XML Project. All Rights Reserved.