public class SetAnnotationToMethodPrimitive extends AbstractPrimitive
changesClassHierarchy, classContent, clazz, modifiedClasses
Constructor and Description |
---|
SetAnnotationToMethodPrimitive(java.lang.reflect.Method met,
ClassContent classContent,
java.lang.Class<?>[] annotations) |
Modifier and Type | Method and Description |
---|---|
protected void |
executePrimitive()
Set the specified annotations to the class
|
boolean |
isSafe()
Returns if the primitive is safe or not.
|
protected void |
undoPrimitive()
Reverts the changes
|
changeVersion, execute, getSuperClass, getTargetClass, undo, undoUpdateVersion, updateVersion, updateVersion
public SetAnnotationToMethodPrimitive(java.lang.reflect.Method met, ClassContent classContent, java.lang.Class<?>[] annotations)
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 errorpublic boolean isSafe()
AbstractPrimitive
isSafe
in interface Primitive
isSafe
in class AbstractPrimitive