public class AddFieldPrimitive extends FieldPrimitive
declaration, getter, name, setter, unarychangesClassHierarchy, classContent, clazz, modifiedClasses| Constructor and Description |
|---|
AddFieldPrimitive(ClassContent classContent,
int modifiers,
java.lang.Class<?> type,
java.lang.String name,
java.lang.String init) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executePrimitive()
Adds the field to the source code and the auxiliar methods needed
|
protected void |
undoPrimitive()
Revert the changes
|
getAuxiliaryMethodVisibilitychangeVersion, execute, getSuperClass, getTargetClass, isSafe, undo, undoUpdateVersion, updateVersion, updateVersionpublic AddFieldPrimitive(ClassContent classContent, int modifiers, java.lang.Class<?> type, java.lang.String name, java.lang.String init)
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