net.kldp.jcodegen.code.type
Class MethodBlock

java.lang.Object
  extended by net.kldp.jcodegen.base.AbstractCodeFragment
      extended by net.kldp.jcodegen.base.AbstractBlock
          extended by net.kldp.jcodegen.base.AbstractMethodBlock
              extended by net.kldp.jcodegen.code.type.MethodBlock
All Implemented Interfaces:
ParamSupport, CodeFragment, Source

public class MethodBlock
extends AbstractMethodBlock

class 의 메소드를 나타낸다.


Constructor Summary
MethodBlock(AbstractTypeBlock parent, java.lang.String method_name)
           
MethodBlock(AbstractTypeBlock parent, Visibility visibility, java.lang.String method_name)
           
 
Method Summary
 void setReturnComment(java.lang.String cmt)
           
 void setReturnType(java.lang.Class clazz)
           
 void setReturnType(java.lang.String className)
           
 void setReturnType(TypeName type)
           
 
Methods inherited from class net.kldp.jcodegen.base.AbstractMethodBlock
addException, addException, addException, addException, addException, addParam, addParam, addParam, appendHeader, getComment, getMethodSupport
 
Methods inherited from class net.kldp.jcodegen.base.AbstractBlock
appendContents, canBeParentOf, getSubList
 
Methods inherited from class net.kldp.jcodegen.base.AbstractCodeFragment
addCommentLine, addImport, addImport, addModifier, appendComment, appendModifiers, eval, getModifiers, getVisibility, setVariable, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodBlock

public MethodBlock(AbstractTypeBlock parent,
                   java.lang.String method_name)

MethodBlock

public MethodBlock(AbstractTypeBlock parent,
                   Visibility visibility,
                   java.lang.String method_name)
Method Detail

setReturnType

public void setReturnType(java.lang.Class clazz)

setReturnType

public void setReturnType(java.lang.String className)

setReturnType

public void setReturnType(TypeName type)

setReturnComment

public void setReturnComment(java.lang.String cmt)