org.apache.ibatis.ibator.api.dom.java
Class Method
java.lang.Object
org.apache.ibatis.ibator.api.dom.java.JavaElement
org.apache.ibatis.ibator.api.dom.java.Method
public class Method
- extends JavaElement
- Author:
- Jeff Butler
Methods inherited from class org.apache.ibatis.ibator.api.dom.java.JavaElement |
addAnnotation, addFormattedAnnotations, addFormattedJavadoc, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isFinal, isStatic, setFinal, setStatic, 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<java.lang.String> getBodyLines()
- Returns:
- Returns the bodyLines.
addBodyLine
public void addBodyLine(java.lang.String line)
addBodyLine
public void addBodyLine(int index,
java.lang.String line)
addBodyLines
public void addBodyLines(java.util.Collection<java.lang.String> lines)
addBodyLines
public void addBodyLines(int index,
java.util.Collection<java.lang.String> lines)
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<Parameter> getParameters()
addParameter
public void addParameter(Parameter parameter)
addParameter
public void addParameter(int index,
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<FullyQualifiedJavaType> getExceptions()
- Returns:
- Returns the exceptions.
addException
public void addException(FullyQualifiedJavaType exception)