Interface MMethod
-
- All Superinterfaces:
JAnnotatedElement
,JElement
,JInvokable
,JMember
,JMethod
,MAnnotatedElement
,MElement
,MInvokable
,MMember
- All Known Implementing Classes:
MethodImpl
public interface MMethod extends JMethod, MInvokable
Mutable version of JMethod.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setReturnType(java.lang.String qualifiedTypeName)
Sets the type of this method's return value.void
setReturnType(JClass c)
Sets the type of this method's return value.void
setUnqualifiedReturnType(java.lang.String unqualifiedTypeName)
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.JAnnotatedElement
getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.JElement
accept, getArtifact, getParent, getSimpleName, getSourcePosition, toString
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.JInvokable
getExceptionTypes, getParameters
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.JMember
getContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublic
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.JMethod
getQualifiedName, getReturnType, isAbstract, isFinal, isNative, isStatic, isSynchronized
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.mutable.MAnnotatedElement
addLiteralAnnotation, createComment, findOrCreateAnnotation, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeComment
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.mutable.MElement
accept, createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleName
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.mutable.MInvokable
addException, addException, addNewParameter, getMutableParameters, removeException, removeException, removeParameter
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.mutable.MMember
setModifiers
-
-
-
-
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()).
-
-