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

public Class ClassGenerator

extends ClassGen
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xalan.internal.xsltc.compiler.util.FilterGenerator, com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeCounterGenerator, com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeSortRecordFactGenerator, com.sun.org.apache.xalan.internal.xsltc.compiler.util.NodeSortRecordGenerator
Imports
com.sun.org.apache.bcel.internal.classfile.Method, com.sun.org.apache.bcel.internal.generic.ALOAD, .ClassGen, .Instruction, com.sun.org.apache.xalan.internal.xsltc.compiler.Constants, .Parser, .Stylesheet

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

Field Summary

Modifier and TypeField and Description
private final Instruction
private final String
private final String
private final String
private final String
private final Parser
private Stylesheet
protected static int
protected static final int

Constructor Summary

AccessConstructor and Description
public
ClassGenerator(String class_name, String super_class_name, String file_name, int access_flags, String[] interfaces, Stylesheet stylesheet)

Method Summary

Modifier and TypeMethod and Description
public void
public final String
public final String
public final String
getClassName()

Overrides com.sun.org.apache.bcel.internal.generic.ClassGen.getClassName.

Pretend this is the stylesheet class.

public final String
public final String
public final Parser
public final Stylesheet
public boolean
isExternal()

Returns true or false depending on whether this class inherits from AbstractTranslet or not.

public Instruction
Inherited from com.sun.org.apache.bcel.internal.generic.ClassGen:
addAnnotationEntryaddAttributeaddEmptyConstructoraddFieldaddInterfaceaddMethodaddObserverclonecontainsFieldcontainsFieldcontainsMethodequalsgetAnnotationEntriesgetAttributesgetClassNameIndexgetComparatorgetConstantPoolgetFieldsgetFileNamegetInterfaceNamesgetInterfacesgetJavaClassgetMajorgetMethodAtgetMethodsgetMinorgetSuperclassNamegetSuperclassNameIndexhashCoderemoveAttributeremoveFieldremoveInterfaceremoveMethodremoveObserverreplaceFieldreplaceMethodsetClassNamesetClassNameIndexsetComparatorsetConstantPoolsetMajorsetMethodAtsetMethodssetMinorsetSuperclassNamesetSuperclassNameIndexupdate

Field Detail

_aloadTransletback to summary
private final Instruction _aloadTranslet
_applyTemplatesSigback to summary
private final String _applyTemplatesSig
_applyTemplatesSigForImportback to summary
private final String _applyTemplatesSigForImport
_domClassback to summary
private final String _domClass
_domClassSigback to summary
private final String _domClassSig
_parserback to summary
private final Parser _parser
_stylesheetback to summary
private Stylesheet _stylesheet
INVALID_INDEXback to summary
protected static int INVALID_INDEX
TRANSLET_INDEXback to summary
protected static final int TRANSLET_INDEX

Constructor Detail

ClassGeneratorback to summary
public ClassGenerator(String class_name, String super_class_name, String file_name, int access_flags, String[] interfaces, Stylesheet stylesheet)

Method Detail

addMethodback to summary
public void addMethod(MethodGenerator methodGen)
getApplyTemplatesSigback to summary
public final String getApplyTemplatesSig()
getApplyTemplatesSigForImportback to summary
public final String getApplyTemplatesSigForImport()
getClassNameback to summary
public final String getClassName()

Overrides com.sun.org.apache.bcel.internal.generic.ClassGen.getClassName.

Pretend this is the stylesheet class. Useful when compiling references to global variables inside a predicate.

getDOMClassback to summary
public final String getDOMClass()
getDOMClassSigback to summary
public final String getDOMClassSig()
getParserback to summary
public final Parser getParser()
getStylesheetback to summary
public final Stylesheet getStylesheet()
isExternalback to summary
public boolean isExternal()

Returns true or false depending on whether this class inherits from AbstractTranslet or not.

loadTransletback to summary
public Instruction loadTranslet()