public interface MMethod extends JMethod, MInvokable
Mutable version of JMethod.
| Modifier and Type | Method and Description |
|---|---|
void |
setReturnType(JClass c)
Sets the type of this method's return value.
|
void |
setReturnType(java.lang.String qualifiedTypeName)
Sets the type of this method's return value.
|
void |
setUnqualifiedReturnType(java.lang.String unqualifiedTypeName) |
getQualifiedName, getReturnType, isAbstract, isFinal, isNative, isStatic, isSynchronizedaddException, addException, addNewParameter, getMutableParameters, removeException, removeException, removeParametergetExceptionTypes, getParameterssetModifiersaddLiteralAnnotation, createComment, findOrCreateAnnotation, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeCommentaccept, createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleNamegetContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublicgetAllJavadocTags, getAnnotation, getAnnotation, getAnnotations, getAnnotationValue, getCommentaccept, getArtifact, getParent, getSimpleName, getSourcePosition, isSourceAvailable, toStringvoid setReturnType(java.lang.String qualifiedTypeName)
Sets the type of this method's return value. Null can be passed if a 'void' return type is desired.
java.lang.IllegalArgumentException - if the parameter is not a valid
java class name.void setUnqualifiedReturnType(java.lang.String unqualifiedTypeName)
void setReturnType(JClass c)
Sets the type of this method's return value. Null may be passed if a 'void' return type is desired. This method is exactly equivalent to calling setReturnType(jclass.getQualifiedName()).