public class ReplaceFieldPrimitive extends FieldPrimitive
declaration, getter, name, setter, unary
changesClassHierarchy, classContent, clazz, modifiedClasses
Constructor and Description |
---|
ReplaceFieldPrimitive(ClassContent classContent,
java.lang.String name,
java.lang.Class<?> newFieldClass,
java.lang.String newInit) |
Modifier and Type | Method and Description |
---|---|
protected void |
executePrimitive()
Changes the type of the field and the type of the auxiliary methods
|
protected void |
undoPrimitive()
Reverts the changes
|
getAuxiliaryMethodVisibility
changeVersion, execute, getSuperClass, getTargetClass, isSafe, undo, undoUpdateVersion, updateVersion, updateVersion
public ReplaceFieldPrimitive(ClassContent classContent, java.lang.String name, java.lang.Class<?> newFieldClass, java.lang.String newInit)
protected void executePrimitive() throws StructuralIntercessionException
executePrimitive
in class AbstractPrimitive
StructuralIntercessionException
- If there are any errorprotected void undoPrimitive() throws StructuralIntercessionException
undoPrimitive
in class AbstractPrimitive
StructuralIntercessionException
- If there are any error