net.kldp.jcodegen.code
Class IfWrapper

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

public class IfWrapper
extends AbstractTransparentBlock

if ... if else ... else 문을 나타낸다. if 문을 계속 추가하다가 마지막에 else 문을 추가할 수 있다.


Constructor Summary
IfWrapper(AbstractBlock parent)
           
 
Method Summary
protected  boolean canBeParentOf(Source code)
          check if code can be added to this object.
 
Methods inherited from class net.kldp.jcodegen.code.AbstractTransparentBlock
appendContents, appendHeader
 
Methods inherited from class net.kldp.jcodegen.base.AbstractBlock
getComment, getSubList
 
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

IfWrapper

public IfWrapper(AbstractBlock parent)
Method Detail

canBeParentOf

protected boolean canBeParentOf(Source code)
Description copied from class: AbstractBlock
check if code can be added to this object.

Overrides:
canBeParentOf in class AbstractBlock
Returns: