net.kldp.jcodegen.code
Class SwitchBlock

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

public class SwitchBlock
extends AbstractBlock


Constructor Summary
SwitchBlock(AbstractBlock parent, java.lang.String expression)
           
 
Method Summary
 void appendHeader(Output target, Formatter formatter)
           
protected  boolean canBeParentOf(Source code)
          check if code can be added to this object.
 
Methods inherited from class net.kldp.jcodegen.base.AbstractBlock
appendContents, 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

SwitchBlock

public SwitchBlock(AbstractBlock parent,
                   java.lang.String expression)
Method Detail

appendHeader

public void appendHeader(Output target,
                         Formatter formatter)
Specified by:
appendHeader in class AbstractBlock

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: