|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Base class of methods, constructors, and the like.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.ws.jaxme.js.ConditionalIndentationJavaSourceObject |
---|
ConditionalIndentationJavaSourceObject.LJFImpl, ConditionalIndentationJavaSourceObject.LoopVariable |
Field Summary |
---|
Fields inherited from interface org.apache.ws.jaxme.js.IndentationEngine |
---|
NOTHING |
Constructor Summary | |
---|---|
protected |
AbstractJavaMethod(java.lang.String pName,
JavaQName pType,
JavaSource.Protection pProtection)
|
Method Summary | |
---|---|
Parameter |
addParam(java.lang.Class p,
java.lang.String v)
Adds a parameter that this method takes. |
Parameter |
addParam(JavaQName pType,
java.lang.String pName)
Adds a parameter that this method takes. |
Parameter |
addParam(Parameter pParam)
Adds a parameter that this method takes. |
void |
addThrows(java.lang.Class e)
Adds an exception to this methods list of exceptions. |
void |
addThrows(JavaQName 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. |
java.lang.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(java.lang.Class e)
Returns whether the method is throwing the given exception. |
boolean |
isThrowing(JavaQName e)
Returns whether the method is throwing the given exception. |
void |
removeThrows(java.lang.Class exc)
Removes an exception from this methods list of exceptions, if it is declared to be thrown. |
void |
removeThrows(JavaQName exc)
Removes an exception from this methods list of exceptions, if it is declared to be thrown. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ws.jaxme.js.IndentationEngine |
---|
addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, clear, getLevel, getPlaceHolder, indent, moveToBottom, moveToTop, newPlaceHolder, setLevel, unindent |
Constructor Detail |
---|
protected AbstractJavaMethod(java.lang.String pName, JavaQName pType, JavaSource.Protection pProtection)
Method Detail |
---|
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 an MalformedURLException
,
then the value isThrowing(java.io.IOException.class)
is still false.
public boolean isThrowing(java.lang.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 an MalformedURLException
,
then the value isThrowing(java.io.IOException.class)
is still false.
public void addThrows(JavaQName e)
Adds an exception to this methods list of exceptions.
getExceptions()
public void addThrows(java.lang.Class e)
Adds an exception to this methods list of exceptions.
getExceptions()
public Parameter addParam(java.lang.Class p, java.lang.String v)
Adds a parameter that this method takes.
getParams()
public Parameter addParam(JavaQName pType, java.lang.String pName)
Adds a parameter that this method takes.
getParams()
public Parameter addParam(Parameter pParam)
Adds a parameter that this method takes.
getParams()
public void clearParams()
Clears the list of parameters.
public JavaQName[] getExceptions()
Returns the list of exceptions thrown by this method.
addThrows(JavaQName)
public Parameter[] getParams()
Returns the list of parameters that this method takes. Any element
in the list is an instance of Parameter
.
addParam(JavaQName, String)
public java.lang.String[] getParamNames()
Returns a list of the parameter names that this method takes. Any element
in the list is an instance of String
.
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().
addParam(JavaQName, String)
public void removeThrows(JavaQName exc)
Removes an exception from this methods list of exceptions, if it is declared to be thrown.
exc
- the exception to be removedpublic void removeThrows(java.lang.Class exc)
Removes an exception from this methods list of exceptions, if it is declared to be thrown.
exc
- the exception to be removedpublic void clearThrows()
Clears the list of thrown exceptions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |