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

java.lang.Object
  extended byorg.apache.ibatis.abator.api.dom.java.JavaElement
      extended byorg.apache.ibatis.abator.api.dom.java.Method

public class Method
extends JavaElement

Author:
Jeff Butler

Constructor Summary
Method()
           
 
Method Summary
 void addBodyLine(java.lang.String line)
           
 void addException(FullyQualifiedJavaType exception)
           
 void addParameter(Parameter parameter)
           
 java.util.List getBodyLines()
           
 java.util.List getExceptions()
           
 java.lang.String getFormattedContent(int indentLevel, boolean interfaceMethod)
           
 java.lang.String getName()
           
 java.util.List 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.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
 

Constructor Detail

Method

public Method()
Method Detail

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)