org.apache.ibatis.abator.api.dom.java
Class Method
java.lang.Object
org.apache.ibatis.abator.api.dom.java.JavaElement
org.apache.ibatis.abator.api.dom.java.Method
- public class Method
- extends JavaElement
- Author:
- Jeff Butler
Methods inherited from class org.apache.ibatis.abator.api.dom.java.JavaElement |
addAnnotation, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isModifierFinal, isModifierStatic, setModifierFinal, setModifierStatic, setVisibility |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method
public Method()
getBodyLines
public java.util.List getBodyLines()
- Returns:
- Returns the bodyLines.
addBodyLine
public void addBodyLine(java.lang.String line)
getFormattedContent
public java.lang.String getFormattedContent(int indentLevel,
boolean interfaceMethod)
isConstructor
public boolean isConstructor()
- Returns:
- Returns the constructor.
setConstructor
public void setConstructor(boolean constructor)
- Parameters:
constructor
- The constructor to set.
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Parameters:
name
- The name to set.
getParameters
public java.util.List getParameters()
addParameter
public void addParameter(Parameter parameter)
getReturnType
public FullyQualifiedJavaType getReturnType()
- Returns:
- Returns the returnType.
setReturnType
public void setReturnType(FullyQualifiedJavaType returnType)
- Parameters:
returnType
- The returnType to set.
getExceptions
public java.util.List getExceptions()
- Returns:
- Returns the exceptions.
addException
public void addException(FullyQualifiedJavaType exception)