public class AddGenericTypeToMethodPrimitive extends AbstractPrimitive
changesClassHierarchy, classContent, clazz, modifiedClasses
Constructor and Description |
---|
AddGenericTypeToMethodPrimitive(java.lang.reflect.Method met,
ClassContent classContent,
TypeVariable<?>[] typesToAdd) |
Modifier and Type | Method and Description |
---|---|
protected void |
executePrimitive()
Adds 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 AddGenericTypeToMethodPrimitive(java.lang.reflect.Method met, ClassContent classContent, TypeVariable<?>[] typesToAdd)
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