org.codehaus.jam.mutable
Interface MMethod

All Superinterfaces:
JAnnotatedElement, JElement, JInvokable, JMember, JMethod, MAnnotatedElement, MElement, MInvokable, MMember

public interface MMethod
extends JMethod, MInvokable

Mutable version of JMethod.

Author:
Patrick Calahan <email: pcal-at-bea-dot-com>

Method Summary
 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)
           
 
Methods inherited from interface org.codehaus.jam.JMethod
getQualifiedName, getReturnType, isAbstract, isFinal, isNative, isStatic, isSynchronized
 
Methods inherited from interface org.codehaus.jam.mutable.MInvokable
addException, addException, addNewParameter, getMutableParameters, removeException, removeException, removeParameter
 
Methods inherited from interface org.codehaus.jam.JInvokable
getExceptionTypes, getParameters
 
Methods inherited from interface org.codehaus.jam.mutable.MMember
setModifiers
 
Methods inherited from interface org.codehaus.jam.mutable.MAnnotatedElement
addLiteralAnnotation, createComment, findOrCreateAnnotation, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeComment
 
Methods inherited from interface org.codehaus.jam.mutable.MElement
accept, createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleName
 
Methods inherited from interface org.codehaus.jam.JMember
getContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublic
 
Methods inherited from interface org.codehaus.jam.JAnnotatedElement
getAllJavadocTags, getAnnotation, getAnnotation, getAnnotations, getAnnotationValue, getComment
 
Methods inherited from interface org.codehaus.jam.JElement
accept, getArtifact, getParent, getSimpleName, getSourcePosition, isSourceAvailable, toString
 

Method Detail

setReturnType

void 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.

Throws:
java.lang.IllegalArgumentException - if the parameter is not a valid java class name.

setUnqualifiedReturnType

void setUnqualifiedReturnType(java.lang.String unqualifiedTypeName)

setReturnType

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()).