public abstract class InvokableImpl extends MemberImpl implements MInvokable
NO_ANNOTATION, NO_CLASS, NO_COMMENT, NO_CONSTRUCTOR, NO_FIELD, NO_METHOD, NO_NODE, NO_PACKAGE, NO_PARAMETER, NO_PROPERTY| Modifier and Type | Method and Description |
|---|---|
void |
addException(JClass exceptionClass)
Adds a declaration of a checked exception of the given type.
|
void |
addException(String qcname)
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.
|
void |
addUnqualifiedException(String ucname) |
JClass[] |
getExceptionTypes()
Returns representations of the type of each of the exceptions
which can be thrown by this method.
|
MParameter[] |
getMutableParameters()
Returns all of the parameters on this method, or an empty array if there
are none.
|
JParameter[] |
getParameters()
Returns representations of the parameters taken by this
method.
|
String |
getQualifiedName()
Returns a qualified name for this abstraction.
|
void |
removeException(JClass exceptionClass)
Removes a declaration of a checked exception of the given class.
|
void |
removeException(String exceptionClassName)
Removes a declaration of a checked exception of the named class.
|
void |
removeParameter(MParameter parameter)
Removes the given parameter.
|
void |
setUnqualifiedThrows(List classnames) |
getContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublic, setModifiersaddAnnotationForProxy, addLiteralAnnotation, createComment, findOrCreateAnnotation, getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment, getEditableProxy, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeAnnotation, removeCommentcompareTo, createSourcePosition, defaultName, equals, getArtifact, getClassLoader, getContext, getMutableSourcePosition, getParent, getSimpleName, getSourcePosition, hashCode, removeSourcePosition, setArtifact, setSimpleName, toStringsetModifiersaddLiteralAnnotation, 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, toStringpublic void addException(JClass exceptionClass)
MInvokableAdds a declaration of a checked exception of the given type.
addException in interface MInvokablepublic void addException(String qcname)
MInvokableAdds a declaration of a checked exception of the given type.
addException in interface MInvokablepublic void addUnqualifiedException(String ucname)
public void removeException(String exceptionClassName)
MInvokableremoveException in interface MInvokablepublic void removeException(JClass exceptionClass)
MInvokableremoveException in interface MInvokablepublic MParameter addNewParameter()
MInvokableaddNewParameter in interface MInvokablepublic void removeParameter(MParameter parameter)
MInvokableremoveParameter in interface MInvokablepublic MParameter[] getMutableParameters()
MInvokablegetMutableParameters in interface MInvokablepublic JParameter[] getParameters()
JInvokableReturns representations of the parameters taken by this method. Returns an array of length 0 if the method takes no parameters.
getParameters in interface JInvokablepublic JClass[] getExceptionTypes()
JInvokableReturns representations of the type of each of the exceptions which can be thrown by this method. Returns an array of length 0 if the method throws no exceptions.
getExceptionTypes in interface JInvokablepublic String getQualifiedName()
JElementReturns a qualified name for this abstraction. The exact format of this name depends on the particular abstraction. Please refer to the documentation for each JElement subclass for a detailed description of the qualified name formats.
getQualifiedName in interface JElementpublic void setUnqualifiedThrows(List classnames)
Copyright © 2010 - 2020 Adobe. All Rights Reserved