public interface MInvokable extends JInvokable, MMember
Mutable version of JInvokable.
| Modifier and Type | Method and Description |
|---|---|
void |
addException(JClass exceptionClass)
Adds a declaration of a checked exception of the given type.
|
void |
addException(String qualifiedClassName)
Adds a declaration of a checked exception of the given type.
|
MParameter |
addNewParameter()
Creates a new parameter on this method of type java.lang.Object and
with a default name.
|
MParameter[] |
getMutableParameters()
Returns all of the parameters on this method, or an empty array if there
are none.
|
void |
removeException(JClass exceptionClass)
Removes a declaration of a checked exception of the given class.
|
void |
removeException(String qualifiedClassName)
Removes a declaration of a checked exception of the named class.
|
void |
removeParameter(MParameter parameter)
Removes the given parameter.
|
getExceptionTypes, 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, getQualifiedName, getSimpleName, getSourcePosition, toStringvoid addException(String qualifiedClassName)
Adds a declaration of a checked exception of the given type.
IllegalArgumentException - if the parameter is null or is not
a valid class name.void addException(JClass exceptionClass)
Adds a declaration of a checked exception of the given type.
IllegalArgumentException - if the parameter is null or represents
a class which does not extend throwable.void removeException(String qualifiedClassName)
IllegalArgumentException - if the parameter is null or is not
a valid class name.void removeException(JClass exceptionClass)
IllegalArgumentException - if the parameter is null.MParameter addNewParameter()
void removeParameter(MParameter parameter)
IllegalArgumentException - if either parameter is null.MParameter[] getMutableParameters()
Copyright © 2010 - 2020 Adobe. All Rights Reserved