net.sourceforge.jpotpourri.codegen
Class AbstractGenClass
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractGenClass
public AbstractGenClass(GenVisibility visibility,
java.lang.String className,
java.lang.String packageName,
java.lang.String superClass,
GenClassModifier... modifiers)
- Parameters:
superClass
- can be null
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.