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