Class NodeCounterGenerator
- java.lang.Object
-
- org.apache.bcel.classfile.AccessFlags
-
- org.apache.bcel.generic.ClassGen
-
- org.apache.xalan.xsltc.compiler.util.ClassGenerator
-
- org.apache.xalan.xsltc.compiler.util.NodeCounterGenerator
-
- All Implemented Interfaces:
java.lang.Cloneable
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, Santiago Pericas-Geertsen
-
-
Constructor Summary
Constructors Constructor Description NodeCounterGenerator(java.lang.String className, java.lang.String superClassName, java.lang.String fileName, int accessFlags, java.lang.String[] interfaces, Stylesheet stylesheet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisExternal()Returns true since this class is external to the translet.org.apache.bcel.generic.InstructionloadTranslet()The index of the translet pointer within the execution of matchFrom or matchCount.voidsetTransletIndex(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
addMethod, getApplyTemplatesSig, getApplyTemplatesSigForImport, getClassName, getDOMClass, getDOMClassSig, getParser, getStylesheet
-
Methods inherited from class org.apache.bcel.generic.ClassGen
addAnnotationEntry, addAttribute, addEmptyConstructor, addField, addInterface, addMethod, addObserver, clone, containsField, containsField, containsMethod, equals, getAnnotationEntries, getAttributes, getClassNameIndex, getComparator, getConstantPool, getFields, getFileName, getInterfaceNames, getInterfaces, getJavaClass, getMajor, getMethodAt, getMethods, getMinor, getSuperclassName, getSuperclassNameIndex, hashCode, removeAttribute, removeField, removeInterface, removeMethod, removeObserver, replaceField, replaceMethod, setClassName, setClassNameIndex, setComparator, setConstantPool, setMajor, setMethodAt, setMethods, setMinor, setSuperclassName, setSuperclassNameIndex, update
-
Methods inherited from class org.apache.bcel.classfile.AccessFlags
getAccessFlags, getModifiers, isAbstract, isAbstract, isAnnotation, isAnnotation, isEnum, isEnum, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isSynthetic, isSynthetic, isTransient, isTransient, isVarArgs, isVarArgs, isVolatile, isVolatile, setAccessFlags, setModifiers
-
-
-
-
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.
-
loadTranslet
public org.apache.bcel.generic.Instruction loadTranslet()
The index of the translet pointer within the execution of matchFrom or matchCount. Overridden from ClassGenerator.- Overrides:
loadTransletin classClassGenerator
-
isExternal
public boolean isExternal()
Returns true since this class is external to the translet.- Overrides:
isExternalin classClassGenerator
-
-