org.apache.ws.jaxme.js
public abstract class AbstractJavaMethod extends ConditionalIndentationJavaSourceObject
Constructor Summary | |
---|---|
protected | AbstractJavaMethod(String pName, JavaQName pType, JavaSource.Protection pProtection) |
Method Summary | |
---|---|
Parameter | addParam(Class p, String v) Adds a parameter that this method takes. |
Parameter | addParam(JavaQName pType, String pName) Adds a parameter that this method takes. |
Parameter | addParam(Parameter pParam) Adds a parameter that this method takes. |
void | addThrows(JavaQName e) Adds an exception to this methods list of exceptions. |
void | addThrows(Class e) Adds an exception to this methods list of exceptions. |
void | clearParams() Clears the list of parameters. |
void | clearThrows() Clears the list of thrown exceptions. |
JavaQName[] | getExceptions() Returns the list of exceptions thrown by this method. |
String[] | getParamNames() Returns a list of the parameter names that this method takes. |
Parameter[] | getParams() Returns the list of parameters that this method takes. |
JavaQName[] | getParamTypes() Returns an array of the parameter types that this method takes. |
boolean | isThrowing(JavaQName e) Returns whether the method is throwing the given exception. |
boolean | isThrowing(Class e) Returns whether the method is throwing the given exception. |
void | removeThrows(JavaQName exc) Removes an exception from this methods list of exceptions, if it is declared to be thrown. |
void | removeThrows(Class exc) Removes an exception from this methods list of exceptions, if it is declared to be thrown. |
Adds a parameter that this method takes.
Returns: An object to use for referencing the parameter inside the method.
See Also: AbstractJavaMethod
Adds a parameter that this method takes.
Returns: An object to use for referencing the parameter inside the method.
See Also: AbstractJavaMethod
Adds a parameter that this method takes.
Returns: An object to use for referencing the parameter inside the method.
See Also: AbstractJavaMethod
Adds an exception to this methods list of exceptions.
See Also: AbstractJavaMethod
Adds an exception to this methods list of exceptions.
See Also: AbstractJavaMethod
Clears the list of parameters.
Clears the list of thrown exceptions.
Returns the list of exceptions thrown by this method.
See Also: addThrows
Returns a list of the parameter names that this method takes. Any element in the list is an instance of {@link java.lang.String}.
Returns: the list of parameter names
See Also: AbstractJavaMethod
Returns the list of parameters that this method takes. Any element in the list is an instance of {@link Parameter}.
Returns: the list of parameters
See Also: AbstractJavaMethod
Returns an array of the parameter types that this method takes. This array can be used for JavaSource.getMethod() or JavaSource.getConstructor().
Returns: the list of parameter types
See Also: AbstractJavaMethod
Returns whether the method is throwing the given exception.
Note that this method doesn't care for inheritance. For example,
if the method declares to be throwing an {@link java.net.MalformedURLException},
then the value isThrowing(java.io.IOException.class)
is still false.
Returns whether the method is throwing the given exception.
Note that this method doesn't care for inheritance. For example,
if the method declares to be throwing an {@link java.net.MalformedURLException},
then the value isThrowing(java.io.IOException.class)
is still false.
Removes an exception from this methods list of exceptions, if it is declared to be thrown.
Parameters: exc the exception to be removed
Removes an exception from this methods list of exceptions, if it is declared to be thrown.
Parameters: exc the exception to be removed