org.siebengeisslein.pclass
Class TypeChange

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.pclass.TypeChange
All Implemented Interfaces:
CommitConstrained, Instrumented, HasExpression, ExpressionContainer

public class TypeChange
extends Persistent
implements ExpressionContainer, HasExpression


Constructor Summary
TypeChange(PInternalField field, PType oldType, PType type, int version, DataDirectory dataDirectory)
           
 
Method Summary
 void checkConstraints()
           
 boolean containsChild(Expression expression)
           
 DataDirectory getDataDirectory()
           
 Expression getExpression()
           
 PInternalField getField()
           
 PType getFromType()
           
 TypeChange getNext()
           
 PClass getOwnerClass()
           
 PMethod getOwnerMethod()
           
 PType getToType()
           
 BlockVariableManager getVariableManager()
           
 int getVersion()
           
 void migrate(org.objectweb.asm.MethodVisitor mv, int inputVariableIndex, int migrationMapIndex, int versionIndex)
           
 void removeChild(Expression view)
           
 void replaceChild(Expression child, Expression newChild)
           
 void setConversionExpression(Expression conversionExpression)
           
 void setNext(TypeChange next)
           
 void setToType(PType toType)
           
 java.lang.String 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
 

Constructor Detail

TypeChange

public TypeChange(PInternalField field,
                  PType oldType,
                  PType type,
                  int version,
                  DataDirectory dataDirectory)
Method Detail

getNext

public TypeChange getNext()

setNext

public void setNext(TypeChange next)

getField

public PInternalField getField()

getExpression

public Expression getExpression()
Specified by:
getExpression in interface HasExpression

removeChild

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

setConversionExpression

public void setConversionExpression(Expression conversionExpression)

getToType

public PType getToType()

setToType

public void setToType(PType toType)

getVersion

public int getVersion()

replaceChild

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

getVariableManager

public BlockVariableManager getVariableManager()
Specified by:
getVariableManager in interface ExpressionContainer

getOwnerClass

public PClass getOwnerClass()
Specified by:
getOwnerClass in interface ExpressionContainer

getOwnerMethod

public PMethod getOwnerMethod()
Specified by:
getOwnerMethod in interface ExpressionContainer

getFromType

public PType getFromType()

migrate

public void migrate(org.objectweb.asm.MethodVisitor mv,
                    int inputVariableIndex,
                    int migrationMapIndex,
                    int versionIndex)

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDataDirectory

public DataDirectory getDataDirectory()
Specified by:
getDataDirectory in interface ExpressionContainer