org.apache.ibatis.ibator.api.dom.java
Class Method

java.lang.Object
  extended by org.apache.ibatis.ibator.api.dom.java.JavaElement
      extended by org.apache.ibatis.ibator.api.dom.java.Method

public class Method
extends JavaElement

Author:
Jeff Butler

Constructor Summary
Method()
           
 
Method Summary
 void addBodyLine(int index, java.lang.String line)
           
 void addBodyLine(java.lang.String line)
           
 void addBodyLines(java.util.Collection<java.lang.String> lines)
           
 void addBodyLines(int index, java.util.Collection<java.lang.String> lines)
           
 void addException(FullyQualifiedJavaType exception)
           
 void addParameter(int index, Parameter parameter)
           
 void addParameter(Parameter parameter)
           
 java.util.List<java.lang.String> getBodyLines()
           
 java.util.List<FullyQualifiedJavaType> getExceptions()
           
 java.lang.String getFormattedContent(int indentLevel, boolean interfaceMethod)
           
 java.lang.String getName()
           
 java.util.List<Parameter> getParameters()
           
 FullyQualifiedJavaType getReturnType()
           
 boolean isConstructor()
           
 void setConstructor(boolean constructor)
           
 void setName(java.lang.String name)
           
 void setReturnType(FullyQualifiedJavaType returnType)
           
 
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
 

Constructor Detail

Method

public Method()
Method Detail

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)