public class AddFieldPrimitive extends FieldPrimitive
declaration, getter, name, setter, unary
changesClassHierarchy, 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
|
getAuxiliaryMethodVisibility
changeVersion, execute, getSuperClass, getTargetClass, isSafe, undo, undoUpdateVersion, updateVersion, updateVersion
public 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 AbstractPrimitive
StructuralIntercessionException
- If there are any errorprotected void undoPrimitive() throws StructuralIntercessionException
undoPrimitive
in class AbstractPrimitive
StructuralIntercessionException
- If there are any error