net.kldp.jcodegen.code
Class EmptyLine

java.lang.Object
  extended by net.kldp.jcodegen.base.AbstractCodeFragment
      extended by net.kldp.jcodegen.code.EmptyLine
All Implemented Interfaces:
CodeFragment, Source

public class EmptyLine
extends AbstractCodeFragment

코드에 빈 줄을 추가하는데 사용한다.


Constructor Summary
EmptyLine(AbstractBlock parent)
           
EmptyLine(AbstractBlock parent, int lines)
           
 
Method Summary
 void addCommentLine(java.lang.String comment)
           
 void appendContents(int level, Output target, Formatter formatter)
          add contents to target.
protected  AbstractBlockComment getComment()
           
 
Methods inherited from class net.kldp.jcodegen.base.AbstractCodeFragment
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

EmptyLine

public EmptyLine(AbstractBlock parent)

EmptyLine

public EmptyLine(AbstractBlock parent,
                 int lines)
Method Detail

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 object
formatter - : formatting object.

addCommentLine

public void addCommentLine(java.lang.String comment)
Overrides:
addCommentLine in class AbstractCodeFragment

getComment

protected AbstractBlockComment getComment()
Specified by:
getComment in class AbstractCodeFragment