org.siebengeisslein.pclass
Class TypeChange
java.lang.Object
org.siebengeisslein.client.Persistent
org.siebengeisslein.pclass.TypeChange
- All Implemented Interfaces:
- CommitConstrained, Instrumented, HasExpression, ExpressionContainer
public class TypeChange
- extends Persistent
- implements ExpressionContainer, HasExpression
| 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 |
TypeChange
public TypeChange(PInternalField field,
PType oldType,
PType type,
int version,
DataDirectory dataDirectory)
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