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(String qualifiedTypeName)
Sets the type of this method's return value.
|
void |
setUnqualifiedReturnType(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, getAnnotationProxy, getAnnotations, getAnnotationValue, getCommentaccept, getArtifact, getParent, getSimpleName, getSourcePosition, toStringvoid setReturnType(String qualifiedTypeName)
Sets the type of this method's return value. Null can be passed if a 'void' return type is desired.
IllegalArgumentException - if the parameter is not a valid
java class name.void setUnqualifiedReturnType(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()).
Copyright © 2010 - 2020 Adobe. All Rights Reserved