org.siebengeisslein.pclass
Class ForStatement

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.ForStatement
All Implemented Interfaces:
CommitConstrained, Instrumented, CodeFragment, ExpressionContainer, HasVariable, Statement

public class ForStatement
extends BlockStatement
implements HasVariable, ExpressionContainer


Constructor Summary
ForStatement(PInternalMethod method, BlockStatement parent, PLocalVariable var, Variable list, VariableManager vm)
           
ForStatement(PInternalMethod method, BlockStatement parent, VariableManager vm)
           
 
Method Summary
 void checkConstraints()
           
 boolean containsChild(Expression expression)
           
 ExpressionContainer getContainer()
           
 Variable getListVar()
           
 PLocalVariable getVariable()
           
 boolean isDeclaration()
           
 void removeChild(Expression child)
           
 void replaceChild(Expression child, Expression newChild)
           
 void setListVar(Variable list)
           
 void setVariable(Variable var)
           
 void visit(PClass clazz, org.objectweb.asm.MethodVisitor mv, Frame frame)
           
 
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
 
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.HasVariable
getTypeManager, getVariableManager
 
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

ForStatement

public ForStatement(PInternalMethod method,
                    BlockStatement parent,
                    VariableManager vm)

ForStatement

public ForStatement(PInternalMethod method,
                    BlockStatement parent,
                    PLocalVariable var,
                    Variable list,
                    VariableManager vm)
Method Detail

visit

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

getListVar

public Variable getListVar()

setListVar

public void setListVar(Variable list)

getVariable

public PLocalVariable getVariable()
Specified by:
getVariable in interface HasVariable

setVariable

public void setVariable(Variable var)
Specified by:
setVariable in interface HasVariable

isDeclaration

public boolean isDeclaration()
Specified by:
isDeclaration in interface HasVariable

getContainer

public ExpressionContainer getContainer()

replaceChild

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

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