Class ClassGenerator
java.lang.Object
org.apache.bcel.classfile.AccessFlags
org.apache.bcel.generic.ClassGen
org.apache.xalan.xsltc.compiler.util.ClassGenerator
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
FilterGenerator,NodeCounterGenerator,NodeSortRecordFactGenerator,NodeSortRecordGenerator
public class ClassGenerator
extends org.apache.bcel.generic.ClassGen
The class that implements any class that inherits from
AbstractTranslet, i.e. any translet. Methods in this
class may be of the following kinds:
1. Main method: applyTemplates, implemented by intances of
MethodGenerator.
2. Named methods: for named templates, implemented by instances
of NamedMethodGenerator.
3. Rt methods: for result tree fragments, implemented by
instances of RtMethodGenerator.
- Author:
- Jacek Ambroziak, Santiago Pericas-Geertsen
-
Constructor Summary
ConstructorsConstructorDescriptionClassGenerator(String class_name, String super_class_name, String file_name, int access_flags, String[] interfaces, Stylesheet stylesheet) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMethod(MethodGenerator methodGen) final Stringfinal Stringfinal StringPretend this is the stylesheet class.final Stringfinal Stringfinal Parserfinal StylesheetbooleanReturns true or false depending on whether this class inherits from AbstractTranslet or not.org.apache.bcel.generic.InstructionMethods 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, updateMethods 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 Details
-
ClassGenerator
public ClassGenerator(String class_name, String super_class_name, String file_name, int access_flags, String[] interfaces, Stylesheet stylesheet)
-
-
Method Details
-
getParser
-
getStylesheet
-
getClassName
Pretend this is the stylesheet class. Useful when compiling references to global variables inside a predicate.- Overrides:
getClassNamein classorg.apache.bcel.generic.ClassGen
-
loadTranslet
public org.apache.bcel.generic.Instruction loadTranslet() -
getDOMClass
-
getDOMClassSig
-
getApplyTemplatesSig
-
getApplyTemplatesSigForImport
-
isExternal
public boolean isExternal()Returns true or false depending on whether this class inherits from AbstractTranslet or not. -
addMethod
-