org.apache.xalan.xsltc.compiler.util

Class ClassGenerator

public class ClassGenerator extends 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
ClassGenerator(String class_name, String super_class_name, String file_name, int access_flags, String[] interfaces, Stylesheet stylesheet)
Method Summary
StringgetApplyTemplatesSig()
StringgetApplyTemplatesSigForImport()
StringgetClassName()
Pretend this is the stylesheet class.
StringgetDOMClass()
StringgetDOMClassSig()
ParsergetParser()
StylesheetgetStylesheet()
booleanisExternal()
Returns true or false depending on whether this class inherits from AbstractTranslet or not.
InstructionloadTranslet()

Constructor Detail

ClassGenerator

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

Method Detail

getApplyTemplatesSig

public final String getApplyTemplatesSig()

getApplyTemplatesSigForImport

public final String getApplyTemplatesSigForImport()

getClassName

public final String getClassName()
Pretend this is the stylesheet class. Useful when compiling references to global variables inside a predicate.

getDOMClass

public final String getDOMClass()

getDOMClassSig

public final String getDOMClassSig()

getParser

public final Parser getParser()

getStylesheet

public final Stylesheet getStylesheet()

isExternal

public boolean isExternal()
Returns true or false depending on whether this class inherits from AbstractTranslet or not.

loadTranslet

public Instruction loadTranslet()
Copyright © 2005 Apache XML Project. All Rights Reserved.