public class ReplaceFieldPrimitive extends FieldPrimitive
declaration, getter, name, setter, unarychangesClassHierarchy, 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
|
getAuxiliaryMethodVisibilitychangeVersion, execute, getSuperClass, getTargetClass, isSafe, undo, undoUpdateVersion, updateVersion, updateVersionpublic ReplaceFieldPrimitive(ClassContent classContent, java.lang.String name, java.lang.Class<?> newFieldClass, java.lang.String newInit)
protected void executePrimitive()
throws StructuralIntercessionException
executePrimitive in class AbstractPrimitiveStructuralIntercessionException - If there are any errorprotected void undoPrimitive()
throws StructuralIntercessionException
undoPrimitive in class AbstractPrimitiveStructuralIntercessionException - If there are any error