Top Description Inners Methods
org.easymock.bytebuddy.implementation.bind.annotation

public @Interface Morph

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:PARAMETER
Imports
org.easymock.bytebuddy.ByteBuddy, .ClassFileVersion, org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.description.annotation.AnnotationDescription, org.easymock.bytebuddy.description.field.FieldDescription, org.easymock.bytebuddy.description.method.MethodDescription, .MethodList, .ParameterDescription, org.easymock.bytebuddy.description.type.TypeDescription, org.easymock.bytebuddy.dynamic.DynamicType, org.easymock.bytebuddy.dynamic.scaffold.InstrumentedType, .TypeValidation, org.easymock.bytebuddy.dynamic.scaffold.subclass.ConstructorStrategy, org.easymock.bytebuddy.implementation.Implementation, .MethodAccessorFactory, org.easymock.bytebuddy.implementation.auxiliary.AuxiliaryType, org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder, org.easymock.bytebuddy.implementation.bytecode.ByteCodeAppender, .Duplication, .StackManipulation, .TypeCreation, org.easymock.bytebuddy.implementation.bytecode.assign.Assigner, org.easymock.bytebuddy.implementation.bytecode.collection.ArrayAccess, org.easymock.bytebuddy.implementation.bytecode.constant.IntegerConstant, org.easymock.bytebuddy.implementation.bytecode.member.FieldAccess, .MethodInvocation, .MethodReturn, .MethodVariableAccess, org.easymock.bytebuddy.matcher.ElementMatchers, org.easymock.bytebuddy.utility.RandomString, org.easymock.bytebuddy.jar.asm.MethodVisitor, .Opcodes, java.io.Serializable, java.lang.annotation.*, java.util.Collections

This annotation instructs Byte Buddy to inject a proxy class that calls a method's super method with explicit arguments. For this, the Morph.Binder needs to be installed for an interface type that takes an argument of the array type java.lang.Object and returns a non-array type of java.lang.Object. This is an alternative to using the org.easymock.bytebuddy.implementation.bind.annotation.SuperCall or org.easymock.bytebuddy.implementation.bind.annotation.DefaultCall annotations which call a super method using the same arguments as the intercepted method was invoked with.
See Also
net.bytebuddy.implementation.MethodDelegation, net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if a default method should be ignored.
defaultMethod
()

Determines if the proxy should attempt to invoke a default method.

public Class<?>

Returns:

The target interface of a default method call.
defaultTarget
()

The type on which a default method should be invoked.

public boolean

Returns:

true if the proxy should be serializable.
serializableProxy
()

Determines if the injected proxy for this parameter should be serializable.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString