FreeHEP API
Version v1.2.2

org.freehep.aid
Class AbstractJavaGenerator

java.lang.Object
  |
  +--org.freehep.aid.AbstractGenerator
        |
        +--org.freehep.aid.AbstractJavaGenerator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
JavaClassGenerator, JavaInterfaceGenerator

public abstract class AbstractJavaGenerator
extends AbstractGenerator

Version:
$Id: AbstractJavaGenerator.java,v 1.17 2003/05/02 22:29:01 duns Exp $
Author:
Mark Donszelmann

Field Summary
protected  UserProperties importProperties
           
protected static String language
           
protected  UserProperties typeProperties
           
protected  UserProperties valueProperties
           
 
Fields inherited from class org.freehep.aid.AbstractGenerator
out, properties
 
Constructor Summary
AbstractJavaGenerator(String propDir)
           
 
Method Summary
 String directory(IClass clazz)
           
abstract  String filename(IClass clazz)
           
protected  void importFrom(IType type, String packageName, SortedSet imports)
           
protected  void importFrom(String name, String packageName, SortedSet imports)
           
protected  boolean isClass(IClass clazz)
           
protected  String namedType(INamedType namedType)
           
 boolean print(PrintWriter out, IClass clazz)
           
protected abstract  void printClassHeader(IClass clazz)
           
protected  void printEOCComments(IClass clazz)
           
protected  void printEOFComments(IClass clazz)
           
protected  void printField(IField field)
           
protected  void printImportStatements(IClass clazz)
           
protected  void printMethod(IClass clazz, IMethod method)
           
protected  void printMethod(IClass clazz, IMethod method, int noOfParameters)
           
protected  void printMethodBody(IClass clazz, IMethod method, int noOfParameters)
           
protected  void printMethodComments(IMethod method, int noOfParameters)
           
protected  void printMethodHeader(IClass clazz, IMethod method, int noOfParameters)
           
protected  String type(IType type)
           
 
Methods inherited from class org.freehep.aid.AbstractGenerator
getProperties, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

language

protected static final String language
See Also:
Constant Field Values

importProperties

protected UserProperties importProperties

typeProperties

protected UserProperties typeProperties

valueProperties

protected UserProperties valueProperties
Constructor Detail

AbstractJavaGenerator

public AbstractJavaGenerator(String propDir)
Method Detail

directory

public String directory(IClass clazz)
Specified by:
directory in interface Generator
Overrides:
directory in class AbstractGenerator

filename

public abstract String filename(IClass clazz)
Specified by:
filename in interface Generator
Specified by:
filename in class AbstractGenerator

isClass

protected boolean isClass(IClass clazz)

print

public boolean print(PrintWriter out,
                     IClass clazz)
Specified by:
print in interface Generator
Specified by:
print in class AbstractGenerator
Returns:
true to stop generating more file

printClassHeader

protected abstract void printClassHeader(IClass clazz)

printEOCComments

protected void printEOCComments(IClass clazz)

printEOFComments

protected void printEOFComments(IClass clazz)

printImportStatements

protected void printImportStatements(IClass clazz)

importFrom

protected void importFrom(IType type,
                          String packageName,
                          SortedSet imports)

importFrom

protected void importFrom(String name,
                          String packageName,
                          SortedSet imports)

printMethod

protected void printMethod(IClass clazz,
                           IMethod method)

printMethod

protected void printMethod(IClass clazz,
                           IMethod method,
                           int noOfParameters)

printMethodComments

protected void printMethodComments(IMethod method,
                                   int noOfParameters)

printMethodHeader

protected void printMethodHeader(IClass clazz,
                                 IMethod method,
                                 int noOfParameters)

printMethodBody

protected void printMethodBody(IClass clazz,
                               IMethod method,
                               int noOfParameters)

printField

protected void printField(IField field)

namedType

protected String namedType(INamedType namedType)

type

protected String type(IType type)

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.