public interface Primitive
Modifier and Type | Method and Description |
---|---|
java.util.Set<ClassContent> |
execute()
Apply the primitive over the
ClassContent |
java.lang.Class |
getTargetClass()
Return the class that is modified by this primitive.
|
boolean |
isSafe()
Show if the primitive could provoke errors in the application
|
void |
undo()
Revert all the changes.
|
java.lang.Class getTargetClass()
void undo() throws StructuralIntercessionException
StructuralIntercessionException
java.util.Set<ClassContent> execute() throws StructuralIntercessionException
ClassContent
ClassContent
modified by the primitiveStructuralIntercessionException
- If there are errors while performing the modificactionsboolean isSafe()