com.moesol.generator
Class JavaClassGenerator

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

public class JavaClassGenerator
extends ClassGenerator

Abstract base class for code generators


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

Constructor Detail

JavaClassGenerator

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

extendClassProperties

protected void extendClassProperties(Properties p)
                              throws ApplyException
Template method

Overrides:
extendClassProperties in class ClassGenerator
Throws:
ApplyException

getCniName

protected String getCniName()
                     throws ApplyException
Throws:
ApplyException

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

getC2pcCoclass

protected String getC2pcCoclass(Class cls)
                         throws ApplyException
Throws:
ApplyException


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