net.sourceforge.jpotpourri.codegen
Class AbstractGenClass

java.lang.Object
  extended by net.sourceforge.jpotpourri.codegen.AbstractGenClass
All Implemented Interfaces:
IAnnotationable, IJavaCode

public abstract class AbstractGenClass
extends java.lang.Object
implements IJavaCode, IAnnotationable

Author:
christoph_pickl@users.sourceforge.net

Field Summary
static java.lang.String CLASSNAME_GEN_SUFFIX
           
static java.lang.String CLASSNAME_MAN_SUFFIX
           
 
Constructor Summary
AbstractGenClass(GenVisibility visibility, java.lang.String className, java.lang.String packageName, java.lang.String superClass, GenClassModifier... modifiers)
           
 
Method Summary
 void addAnnotation(java.lang.String textAfterAt)
           
protected  void addField(GenField field)
           
protected  void addImport(java.lang.String qualifiedName)
           
protected  void addMethod(AbstractGenMethod method)
           
 java.lang.String getClassName()
           
 AbstractGenConstructor getConstructor()
           
 java.lang.String getPackageName()
           
 boolean isGenerateManClassSet()
           
protected  void setConstructor(AbstractGenConstructor constructor)
           
 void setManClassDefinition(ManClassDefinition manClassDefinition)
           
 void setStaticInitializer(java.lang.String staticInitializer)
           
 java.lang.String toCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME_GEN_SUFFIX

public static final java.lang.String CLASSNAME_GEN_SUFFIX
See Also:
Constant Field Values

CLASSNAME_MAN_SUFFIX

public static final java.lang.String CLASSNAME_MAN_SUFFIX
See Also:
Constant Field Values
Constructor Detail

AbstractGenClass

public AbstractGenClass(GenVisibility visibility,
                        java.lang.String className,
                        java.lang.String packageName,
                        java.lang.String superClass,
                        GenClassModifier... modifiers)
Parameters:
superClass - can be null
Method Detail

addImport

protected final void addImport(java.lang.String qualifiedName)

addField

protected final void addField(GenField field)

addMethod

protected final void addMethod(AbstractGenMethod method)

setConstructor

protected final void setConstructor(AbstractGenConstructor constructor)

getConstructor

public final AbstractGenConstructor getConstructor()

isGenerateManClassSet

public final boolean isGenerateManClassSet()

setManClassDefinition

public final void setManClassDefinition(ManClassDefinition manClassDefinition)

getClassName

public final java.lang.String getClassName()

getPackageName

public final java.lang.String getPackageName()

setStaticInitializer

public final void setStaticInitializer(java.lang.String staticInitializer)

addAnnotation

public final void addAnnotation(java.lang.String textAfterAt)
Specified by:
addAnnotation in interface IAnnotationable

toCode

public final java.lang.String toCode()
Specified by:
toCode in interface IJavaCode


Copyright © 2008. All Rights Reserved.