net.kldp.jcodegen.code.type
Class MethodDecl
java.lang.Object
net.kldp.jcodegen.base.AbstractCodeFragment
net.kldp.jcodegen.code.type.MethodDecl
- All Implemented Interfaces:
- ParamSupport, CodeFragment, Source
public class MethodDecl
- extends AbstractCodeFragment
- implements ParamSupport
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 |
MethodDecl
public MethodDecl(AbstractTypeBlock parent,
java.lang.String methodName)
MethodDecl
public MethodDecl(AbstractTypeBlock parent,
Visibility visibility,
java.lang.String methodName)
appendContents
public void appendContents(int level,
Output target,
Formatter formatter)
- Description copied from interface:
Source
- add contents to target.
자신의 내용을 target 에 추가한다.
- Specified by:
appendContents
in interface Source
- Parameters:
level
- : indent level .target
- : adding contents to this objectformatter
- : formatting object.
getComment
protected AbstractBlockComment getComment()
- Specified by:
getComment
in class AbstractCodeFragment
addParam
public void addParam(java.lang.Class type,
java.lang.String paramName,
java.lang.String comment)
- Specified by:
addParam
in interface ParamSupport
addParam
public void addParam(java.lang.String typeName,
java.lang.String paramName,
java.lang.String comment)
- Specified by:
addParam
in interface ParamSupport
addParam
public void addParam(TypeName type,
java.lang.String paramName,
java.lang.String comment)
- Specified by:
addParam
in interface ParamSupport