com.moesol.generator
Class JniClassGenerator

java.lang.Object
  extended by com.moesol.generator.ClassGenerator
      extended by com.moesol.generator.JniClassGenerator

public class JniClassGenerator
extends ClassGenerator

Abstract base class for code generators


Constructor Summary
JniClassGenerator(Class clazz, boolean quiet, TranslationContext ctx)
           
 
Method Summary
protected  ClassGeneratorVisitor createClassVisitor(Writer out)
          Template method
protected  void extendClassProperties(Properties p)
          Template method
protected  String getFileSuffix()
          Template method
protected  String getTemplateName()
          Template method
protected  boolean shouldGenerate()
          Template method
 
Methods inherited from class com.moesol.generator.ClassGenerator
ClassForName, cni_forward, createClassOutput, createClassTemplate, findClassTemplate, generate, getClassDirectory, getClassDirectory, getTranslationContext, getTransProperty, merge_import, merge, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JniClassGenerator

public JniClassGenerator(Class clazz,
                         boolean quiet,
                         TranslationContext ctx)
Method Detail

shouldGenerate

protected boolean shouldGenerate()
Template method

Overrides:
shouldGenerate in class ClassGenerator
Returns:
true if the generation should happen for this class.

extendClassProperties

protected void extendClassProperties(Properties p)
Template method

Overrides:
extendClassProperties in class ClassGenerator

getTemplateName

protected String getTemplateName()
                          throws ApplyException
Template method

Specified by:
getTemplateName in class ClassGenerator
Throws:
ApplyException

createClassVisitor

protected ClassGeneratorVisitor createClassVisitor(Writer out)
                                            throws ApplyException
Template method

Specified by:
createClassVisitor in class ClassGenerator
Throws:
ApplyException

getFileSuffix

protected String getFileSuffix()
Template method

Specified by:
getFileSuffix in class ClassGenerator


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.