Interface MInvokable
- 
- All Superinterfaces:
 JAnnotatedElement,JElement,JInvokable,JMember,MAnnotatedElement,MElement,MMember
- All Known Subinterfaces:
 MConstructor,MMethod
- All Known Implementing Classes:
 ConstructorImpl,InvokableImpl,MethodImpl
public interface MInvokable extends JInvokable, MMember
Mutable version of JInvokable.
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddException(java.lang.String qualifiedClassName)Adds a declaration of a checked exception of the given type.voidaddException(JClass exceptionClass)Adds a declaration of a checked exception of the given type.MParameteraddNewParameter()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.voidremoveException(java.lang.String qualifiedClassName)Removes a declaration of a checked exception of the named class.voidremoveException(JClass exceptionClass)Removes a declaration of a checked exception of the given class.voidremoveParameter(MParameter parameter)Removes the given parameter.- 
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, getQualifiedName, 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.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.MMember
setModifiers 
 - 
 
 - 
 
- 
- 
Method Detail
- 
addException
void addException(java.lang.String qualifiedClassName)
Adds a declaration of a checked exception of the given type.
- Throws:
 java.lang.IllegalArgumentException- if the parameter is null or is not a valid class name.
 
- 
addException
void addException(JClass exceptionClass)
Adds a declaration of a checked exception of the given type.
- Throws:
 java.lang.IllegalArgumentException- if the parameter is null or represents a class which does not extend throwable.
 
- 
removeException
void removeException(java.lang.String qualifiedClassName)
Removes a declaration of a checked exception of the named class. Does nothing if no such declaration exists.- Throws:
 java.lang.IllegalArgumentException- if the parameter is null or is not a valid class name.
 
- 
removeException
void removeException(JClass exceptionClass)
Removes a declaration of a checked exception of the given class. Does nothing if no such declaration exists.- Throws:
 java.lang.IllegalArgumentException- if the parameter is null.
 
- 
addNewParameter
MParameter addNewParameter()
Creates a new parameter on this method of type java.lang.Object and with a default name. 
- 
removeParameter
void removeParameter(MParameter parameter)
Removes the given parameter. Does nothing if the parameter is not present on this method.- Throws:
 java.lang.IllegalArgumentException- if either parameter is null.
 
- 
getMutableParameters
MParameter[] getMutableParameters()
Returns all of the parameters on this method, or an empty array if there are none. This is simply a more strongly-typed version of getParameters(). 
 - 
 
 -