net.sourceforge.jpotpourri.codegen.method
Class AbstractGenConstructor

java.lang.Object
  extended by net.sourceforge.jpotpourri.codegen.method.AbstractGenConstructor
All Implemented Interfaces:
IAnnotationable, IJavaCode
Direct Known Subclasses:
NullGenConstructor, PublicEmptyGenConstructor

public abstract class AbstractGenConstructor
extends java.lang.Object

Author:
christoph_pickl@users.sourceforge.net

Constructor Summary
AbstractGenConstructor(GenVisibility visibility, java.lang.String className, GenArgument... arguments)
           
AbstractGenConstructor(GenVisibility visibility, java.lang.String className, java.util.List<GenArgument> arguments)
           
 
Method Summary
 void addAnnotation(java.lang.String textAfterAt)
           
protected abstract  java.lang.String getBody()
           
static AbstractGenConstructor newManConstructor(AbstractGenClass genClass, java.lang.String manClassName)
           
 java.lang.String toCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGenConstructor

public AbstractGenConstructor(GenVisibility visibility,
                              java.lang.String className,
                              java.util.List<GenArgument> arguments)

AbstractGenConstructor

public AbstractGenConstructor(GenVisibility visibility,
                              java.lang.String className,
                              GenArgument... arguments)
Method Detail

newManConstructor

public static AbstractGenConstructor newManConstructor(AbstractGenClass genClass,
                                                       java.lang.String manClassName)

getBody

protected abstract java.lang.String getBody()
Returns:
no need of manual indentation ("\t"); will be done automatically

toCode

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

addAnnotation

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


Copyright © 2008. All Rights Reserved.