net.kldp.jcodegen.base
Class MethodSupportImpl
java.lang.Object
net.kldp.jcodegen.base.MethodSupportImpl
- All Implemented Interfaces:
- MethodSupport, ParamSupport
public class MethodSupportImpl
- extends java.lang.Object
- implements MethodSupport
Method Summary |
void |
addException(java.lang.Class exceptionType)
Adds Exception type in throws declaration . |
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 typeName,
java.lang.String comment)
|
void |
addParam(java.lang.Class type,
java.lang.String paramName,
java.lang.String comment)
|
void |
addParam(java.lang.String typeName,
java.lang.String paramName,
java.lang.String comment)
|
void |
addParam(TypeName type,
java.lang.String paramName,
java.lang.String comment)
|
void |
appendMethodHeader(int indent,
Output target,
Formatter formatter,
Visibility visibility,
java.util.Collection<Modifier> modifiers)
|
void |
appendParamTags(int indent,
Output target,
Formatter formatter)
|
MethodJavaDocComment |
getComment()
|
TypeName |
getReturnType()
|
void |
setReturnComment(java.lang.String returnComment)
|
void |
setReturnType(TypeName returnType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodSupportImpl
public MethodSupportImpl(AbstractCodeFragment assoc,
java.lang.String methodName)
appendParamTags
public void appendParamTags(int indent,
Output target,
Formatter formatter)
addException
public void addException(java.lang.Class exceptionType)
- Adds Exception type in throws declaration .
Equals addException(exceptionType , "")
- Specified by:
addException
in interface MethodSupport
- Parameters:
exceptionType
- Exception type to add
addException
public void addException(java.lang.String exceptionName)
- Adds Exception type in throws declaration .
Equals addException(exceptionName , "")
- Specified by:
addException
in interface MethodSupport
- Parameters:
exceptionType
- Exception type to add
addException
public void addException(java.lang.Class exceptionType,
java.lang.String comment)
- Specified by:
addException
in interface MethodSupport
addException
public void addException(java.lang.String exceptionName,
java.lang.String comment)
- Specified by:
addException
in interface MethodSupport
addException
public void addException(TypeName typeName,
java.lang.String comment)
- Specified by:
addException
in interface MethodSupport
addParam
public void addParam(java.lang.Class type,
java.lang.String paramName,
java.lang.String comment)
- Specified by:
addParam
in interface ParamSupport
addParam
public void addParam(java.lang.String typeName,
java.lang.String paramName,
java.lang.String comment)
- Specified by:
addParam
in interface ParamSupport
addParam
public void addParam(TypeName type,
java.lang.String paramName,
java.lang.String comment)
- Specified by:
addParam
in interface ParamSupport
appendMethodHeader
public void appendMethodHeader(int indent,
Output target,
Formatter formatter,
Visibility visibility,
java.util.Collection<Modifier> modifiers)
- Specified by:
appendMethodHeader
in interface MethodSupport
getComment
public MethodJavaDocComment getComment()
- Specified by:
getComment
in interface MethodSupport
setReturnComment
public void setReturnComment(java.lang.String returnComment)
- Specified by:
setReturnComment
in interface MethodSupport
getReturnType
public TypeName getReturnType()
- Specified by:
getReturnType
in interface MethodSupport
setReturnType
public void setReturnType(TypeName returnType)
- Specified by:
setReturnType
in interface MethodSupport