NodeCounterGeneratorpublic 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. |
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 boolean | isExternal()Returns true since this class is external to the
translet.
return true;
| public com.sun.org.apache.bcel.internal.generic.Instruction | loadTranslet()The index of the translet pointer within the execution of
matchFrom or matchCount.
Overridden from ClassGenerator.
return _aloadTranslet;
| public void | setTransletIndex(int index)Set the index of the register where "this" (the pointer to
the translet) is stored.
_aloadTranslet = new ALOAD(index);
|
|