|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MMethod
Mutable version of JMethod.
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 |
---|
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.
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()).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |