org.siebengeisslein.pclass
Class SwitchCaseEntry

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.pclass.AbstractStatement
          extended by org.siebengeisslein.pclass.BlockStatement
              extended by org.siebengeisslein.pclass.SwitchCaseEntry
All Implemented Interfaces:
CommitConstrained, Instrumented, CodeFragment, ExpressionContainer, Statement

public class SwitchCaseEntry
extends BlockStatement
implements ExpressionContainer


Constructor Summary
SwitchCaseEntry(PInternalMethod method, BlockStatement parent, VariableManager parentVarManager)
           
 
Method Summary
 void checkConstraints()
           
 boolean containsChild(Expression expression)
           
 Expression getExpression()
           
 void removeChild(Expression child)
           
 void replaceChild(Expression child, Expression newChild)
           
 void setExpression(Expression expression)
           
 
Methods inherited from class org.siebengeisslein.pclass.BlockStatement
add, addAfter, addBefore, delete, getDataDirectory, getLineCount, getMethod, getNext, getOwnerClass, getStatementAtLine, getStatements, getTypeManager, getVariableManager, needsReturn, next, onRemove, prev, remove, replace, size, toString, toString, visit
 
Methods inherited from class org.siebengeisslein.pclass.AbstractStatement
getOwnerMethod, getParent, getPrev, loadClass
 
Methods inherited from class org.siebengeisslein.client.Persistent
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, hashCode, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.siebengeisslein.pclass.expression.ExpressionContainer
getDataDirectory, getOwnerClass, getOwnerMethod, getVariableManager
 
Methods inherited from interface org.siebengeisslein.pclass.Statement
getParent, getPrev
 

Constructor Detail

SwitchCaseEntry

public SwitchCaseEntry(PInternalMethod method,
                       BlockStatement parent,
                       VariableManager parentVarManager)
Method Detail

getExpression

public Expression getExpression()

setExpression

public void setExpression(Expression expression)

containsChild

public boolean containsChild(Expression expression)
Specified by:
containsChild in interface ExpressionContainer

removeChild

public void removeChild(Expression child)
Specified by:
removeChild in interface ExpressionContainer

replaceChild

public void replaceChild(Expression child,
                         Expression newChild)
Specified by:
replaceChild in interface ExpressionContainer

checkConstraints

public void checkConstraints()
                      throws ConstraintViolationException
Specified by:
checkConstraints in interface CommitConstrained
Throws:
ConstraintViolationException