net.kldp.jcodegen.base
Interface MethodSupport

All Superinterfaces:
ParamSupport
All Known Implementing Classes:
MethodSupportImpl

public interface MethodSupport
extends ParamSupport


Method Summary
 void addException(java.lang.Class exceptionType)
           
 void addException(java.lang.Class exceptionType, java.lang.String comment)
           
 void addException(java.lang.String exceptionName)
          Adds Exception type in throws declaration .
 void addException(java.lang.String exceptionName, java.lang.String comment)
           
 void addException(TypeName exceptionType, java.lang.String comment)
           
 void appendMethodHeader(int indent, Output target, Formatter formatter, Visibility visibility, java.util.Collection<Modifier> modifiers)
           
 MethodJavaDocComment getComment()
           
 TypeName getReturnType()
           
 void setReturnComment(java.lang.String comment)
           
 void setReturnType(TypeName typeName)
           
 
Methods inherited from interface net.kldp.jcodegen.base.ParamSupport
addParam, addParam, addParam
 

Method Detail

addException

void addException(java.lang.String exceptionName)
Adds Exception type in throws declaration . Equals addException(exceptionName , "")

Parameters:
exceptionType - Exception type to add

addException

void addException(java.lang.Class exceptionType)

addException

void addException(java.lang.Class exceptionType,
                  java.lang.String comment)

addException

void addException(java.lang.String exceptionName,
                  java.lang.String comment)

addException

void addException(TypeName exceptionType,
                  java.lang.String comment)

getReturnType

TypeName getReturnType()

setReturnType

void setReturnType(TypeName typeName)

setReturnComment

void setReturnComment(java.lang.String comment)

appendMethodHeader

void appendMethodHeader(int indent,
                        Output target,
                        Formatter formatter,
                        Visibility visibility,
                        java.util.Collection<Modifier> modifiers)

getComment

MethodJavaDocComment getComment()