net.kldp.jcodegen.code.type
Class MethodBlock
java.lang.Object
net.kldp.jcodegen.base.AbstractCodeFragment
net.kldp.jcodegen.base.AbstractBlock
net.kldp.jcodegen.base.AbstractMethodBlock
net.kldp.jcodegen.code.type.MethodBlock
- All Implemented Interfaces:
- ParamSupport, CodeFragment, Source
public class MethodBlock
- extends AbstractMethodBlock
class 의 메소드를 나타낸다.
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.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 |
MethodBlock
public MethodBlock(AbstractTypeBlock parent,
java.lang.String method_name)
MethodBlock
public MethodBlock(AbstractTypeBlock parent,
Visibility visibility,
java.lang.String method_name)
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)