net.kldp.jcodegen.code
Class Statement

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

public class Statement
extends AbstractCodeFragment

문장 하나를 나타낸다.


Constructor Summary
Statement(AbstractBlock parent, java.lang.String stmt)
           
 
Method Summary
 void appendContents(int level, Output target, Formatter formatter)
          add contents to target.
protected  AbstractBlockComment getComment()
           
 
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

Statement

public Statement(AbstractBlock parent,
                 java.lang.String stmt)
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.

getComment

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