public class ReplaceImplementationPrimitive extends MethodPrimitive
exceptionClasses, exceptions, modifiers, parameterClasses, returnClass
changesClassHierarchy, classContent, clazz, modifiedClasses
Constructor and Description |
---|
ReplaceImplementationPrimitive(ClassContent classContent,
java.lang.String name,
java.lang.String body,
java.lang.Class<?> returnClass,
java.lang.Class<?>[] parameterClasses) |
Modifier and Type | Method and Description |
---|---|
protected void |
executePrimitive()
Changes the method body
|
protected void |
undoPrimitive()
Restores the old body
|
getBodyInvoker, getDescriptor, getInvokerDescriptor, setThrows
changeVersion, execute, getSuperClass, getTargetClass, isSafe, undo, undoUpdateVersion, updateVersion, updateVersion
public ReplaceImplementationPrimitive(ClassContent classContent, java.lang.String name, java.lang.String body, java.lang.Class<?> returnClass, java.lang.Class<?>[] parameterClasses)
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