org.siebengeisslein.pclass
Class ExpressionStatement

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

public class ExpressionStatement
extends AbstractStatement
implements ExpressionContainer


Constructor Summary
ExpressionStatement(BlockStatement parent)
           
 
Method Summary
 void checkConstraints()
           
 boolean containsChild(Expression expression)
           
 Expression getExpression()
           
 void onRemove()
           
 void removeChild(Expression child)
           
 void replaceChild(Expression child, Expression newChild)
           
 void setExpression(Expression expression)
           
 java.lang.String toString(java.lang.String indent)
           
 void visit(PClass clazz, org.objectweb.asm.MethodVisitor mv, Frame frame)
           
 
Methods inherited from class org.siebengeisslein.pclass.AbstractStatement
getDataDirectory, getMethod, getNext, getOwnerClass, getOwnerMethod, getParent, getPrev, getTypeManager, getVariableManager, loadClass, toString
 
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
 

Constructor Detail

ExpressionStatement

public ExpressionStatement(BlockStatement parent)
Method Detail

visit

public void visit(PClass clazz,
                  org.objectweb.asm.MethodVisitor mv,
                  Frame frame)
Specified by:
visit in interface Statement

replaceChild

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

getExpression

public Expression getExpression()

setExpression

public void setExpression(Expression expression)

toString

public java.lang.String toString(java.lang.String indent)
Specified by:
toString in interface Statement

removeChild

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

containsChild

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

checkConstraints

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

onRemove

public void onRemove()
Specified by:
onRemove in interface Statement