|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.generator.javasource.JavaSourceObject de.ispsoft.jaxme.generator.javasource.JavaMethod
Implements a Java method.
Constructor Summary | |
JavaMethod(java.lang.String name,
java.lang.String type)
Creates a new JavaMethod with default protection. |
|
JavaMethod(java.lang.String name,
java.lang.String type,
java.lang.String protection)
Creates a new JavaMethod with the given protection. |
Method Summary | |
void |
addException(java.lang.String e)
Adds an exception to this methods list of exceptions. |
void |
addLine(java.lang.String l)
Adds a line to this methods body. |
void |
addParam(java.lang.String p)
Adds a parameter that this method takes. |
void |
addParam(java.lang.String p,
java.lang.String v)
Adds a parameter that this method takes. |
java.util.ArrayList |
getExceptions()
Returns the list of exceptions thrown by this method. |
protected java.lang.String |
getHeader()
Adds a header line. |
java.util.ArrayList |
getLines()
Returns the list of lines that this methods body holds. |
java.util.ArrayList |
getParams()
Returns the list of parameters that this method takes. |
java.lang.String |
toString(int indent,
boolean isInterface)
Returns a string representation for this method. |
Methods inherited from class de.ispsoft.jaxme.generator.javasource.JavaSourceObject |
getComment, getFinal, getName, getProtection, getStatic, getType, isAbstract, setAbstract, setComment, setFinal, setName, setProtection, setStatic, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaMethod(java.lang.String name, java.lang.String type)
public JavaMethod(java.lang.String name, java.lang.String type, java.lang.String protection)
Creates a new JavaMethod with the given protection.
Method Detail |
public java.util.ArrayList getExceptions()
Returns the list of exceptions thrown by this method.
addException(java.lang.String)
public void addException(java.lang.String e)
Adds an exception to this methods list of exceptions.
getExceptions()
public java.util.ArrayList getLines()
Returns the list of lines that this methods body holds.
addLine(java.lang.String)
public void addLine(java.lang.String l)
Adds a line to this methods body.
getLines()
public java.util.ArrayList getParams()
Returns the list of parameters that this method takes.
addParam(java.lang.String)
public void addParam(java.lang.String p)
Adds a parameter that this method takes.
getParams()
public void addParam(java.lang.String p, java.lang.String v)
Adds a parameter that this method takes.
getParams()
public java.lang.String toString(int indent, boolean isInterface)
Returns a string representation for this method.
protected java.lang.String getHeader()
Adds a header line.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |