net.sourceforge.jpotpourri.codegen.method
Class AbstractGenMethod
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.