Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.ws.jaxme.js.IndentationEngineImpl
org.apache.ws.jaxme.js.JavaSourceObject
org.apache.ws.jaxme.js.ConditionalIndentationJavaSourceObject
org.apache.ws.jaxme.js.AbstractJavaMethod
public abstract class AbstractJavaMethod
Nested Class Summary |
Nested classes/interfaces inherited from class org.apache.ws.jaxme.js.ConditionalIndentationJavaSourceObject | |
ConditionalIndentationJavaSourceObject.LJFImpl , ConditionalIndentationJavaSourceObject.LoopVariable |
Fields inherited from interface org.apache.ws.jaxme.js.IndentationEngine | |
NOTHING |
Constructor Summary | |
|
Method Summary | |
Parameter |
|
Parameter | |
Parameter | |
void |
|
void | |
void |
|
void |
|
JavaQName[] |
|
String[] |
|
JavaQName[] |
|
Parameter[] |
|
boolean |
|
boolean |
|
void |
|
void |
|
Methods inherited from class org.apache.ws.jaxme.js.JavaSourceObject | |
getComment , getJavaSource , getName , getProtection , getType , isAbstract , isFinal , isStatic , newComment , setAbstract , setFinal , setJavaSource , setName , setProtection , setStatic , setType |
Methods inherited from class org.apache.ws.jaxme.js.IndentationEngineImpl | |
addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , asString , checkNulls , clear , getLevel , getLines , getLines , getPlaceHolder , indent , isEmpty , moveToBottom , moveToTop , newPlaceHolder , removePlaceHolder , setLevel , unindent , write , write |
protected AbstractJavaMethod(String pName, JavaQName pType, JavaSource.Protection pProtection)
public Parameter addParam(Class p, String v)
Adds a parameter that this method takes.
- Returns:
- An object to use for referencing the parameter inside the method.
- See Also:
getParams()
public Parameter addParam(JavaQName pType, String pName)
Adds a parameter that this method takes.
- Returns:
- An object to use for referencing the parameter inside the method.
- See Also:
getParams()
public Parameter addParam(Parameter pParam)
Adds a parameter that this method takes.
- Returns:
- An object to use for referencing the parameter inside the method.
- See Also:
getParams()
public void addThrows(Class e)
Adds an exception to this methods list of exceptions.
- See Also:
getExceptions()
public void addThrows(JavaQName e)
Adds an exception to this methods list of exceptions.
- See Also:
getExceptions()
public void clearParams()
Clears the list of parameters.
public void clearThrows()
Clears the list of thrown exceptions.
public JavaQName[] getExceptions()
Returns the list of exceptions thrown by this method.
- See Also:
addThrows(JavaQName)
public String[] getParamNames()
Returns a list of the parameter names that this method takes. Any element in the list is an instance ofjava.lang.String
.
- Returns:
- the list of parameter names
- See Also:
addParam(JavaQName,String)
public JavaQName[] getParamTypes()
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:
addParam(JavaQName,String)
public Parameter[] getParams()
Returns the list of parameters that this method takes. Any element in the list is an instance ofParameter
.
- Returns:
- the list of parameters
- See Also:
addParam(JavaQName,String)
public boolean isThrowing(Class e)
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 anjava.net.MalformedURLException
, then the valueisThrowing(java.io.IOException.class)
is still false.
public boolean isThrowing(JavaQName e)
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 anjava.net.MalformedURLException
, then the valueisThrowing(java.io.IOException.class)
is still false.
public void removeThrows(Class exc)
Removes an exception from this methods list of exceptions, if it is declared to be thrown.
- Parameters:
exc
- the exception to be removed
public void removeThrows(JavaQName exc)
Removes an exception from this methods list of exceptions, if it is declared to be thrown.
- Parameters:
exc
- the exception to be removed