net.sourceforge.jpotpourri.codegen.method
Class AbstractGenMethod

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

public abstract class AbstractGenMethod
extends java.lang.Object

Author:
christoph_pickl@users.sourceforge.net

Constructor Summary
AbstractGenMethod(GenVisibility visibility, java.lang.String methodName, java.lang.String returnType, GenMethodModifier... modifiers)
           
AbstractGenMethod(GenVisibility visibility, java.lang.String methodName, java.lang.String returnType, java.util.List<GenArgument> arguments, GenMethodModifier... modifiers)
           
 
Method Summary
 void addAnnotation(java.lang.String textAfterAt)
           
protected abstract  java.lang.String getBody()
           
protected  java.lang.String getReturnType()
           
 java.lang.String toCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGenMethod

public AbstractGenMethod(GenVisibility visibility,
                         java.lang.String methodName,
                         java.lang.String returnType,
                         GenMethodModifier... modifiers)

AbstractGenMethod

public AbstractGenMethod(GenVisibility visibility,
                         java.lang.String methodName,
                         java.lang.String returnType,
                         java.util.List<GenArgument> arguments,
                         GenMethodModifier... modifiers)
Method Detail

getReturnType

protected final java.lang.String getReturnType()

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.