FreeHEP API
Version current

org.freehep.aid
Class AbstractGenerator

java.lang.Object
  extended byorg.freehep.aid.AbstractGenerator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
AbstractCPPGenerator, AbstractJavaGenerator, CPPPackageHeaderGenerator, PythonClassGenerator

public abstract class AbstractGenerator
extends Object
implements Generator

Version:
$Id: AbstractGenerator.java,v 1.10 2005/04/26 18:17:46 duns Exp $
Author:
Mark Donszelmann
Source Code:
AbstractGenerator.java

Field Summary
protected  UserProperties properties
           
 
Constructor Summary
AbstractGenerator()
           
 
Method Summary
 String directory(IClass clazz)
           
abstract  String filename(IClass clazz)
           
 Properties getProperties()
           
abstract  boolean print(File file, IClass clazz)
           
protected  void warning(IndentPrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected UserProperties properties
Constructor Detail

AbstractGenerator

public AbstractGenerator()
Method Detail

getProperties

public Properties getProperties()
Specified by:
getProperties in interface Generator

warning

protected void warning(IndentPrintWriter out)

directory

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

filename

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

print

public abstract boolean print(File file,
                              IClass clazz)
                       throws IOException
Specified by:
print in interface Generator
Returns:
true to stop generating more files
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.