org.apache.xalan.xsltc.compiler.util

Class ClassGenerator

Known Direct Subclasses:
FilterGenerator, NodeCounterGenerator, NodeSortRecordFactGenerator, NodeSortRecordGenerator

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.
Authors:
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

void
addMethod(MethodGenerator methodGen)
String
getApplyTemplatesSig()
String
getApplyTemplatesSigForImport()
String
getClassName()
Pretend this is the stylesheet class.
String
getDOMClass()
String
getDOMClassSig()
Parser
getParser()
Stylesheet
getStylesheet()
boolean
isExternal()
Returns true or false depending on whether this class inherits from AbstractTranslet or not.
Instruction
loadTranslet()

Constructor Details

ClassGenerator

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

Method Details

addMethod

public void addMethod(MethodGenerator methodGen)

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 © 2006 Apache XML Project. All Rights Reserved.