Top Description Inners Methods
net.bytebuddy.implementation.bind.annotation

public @Interface Morph

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:PARAMETER
Imports
net.bytebuddy.ByteBuddy, .ClassFileVersion, net.bytebuddy.build.HashCodeAndEqualsPlugin, net.bytebuddy.description.annotation.AnnotationDescription, net.bytebuddy.description.field.FieldDescription, net.bytebuddy.description.method.MethodDescription, .MethodList, .ParameterDescription, net.bytebuddy.description.type.TypeDescription, net.bytebuddy.dynamic.DynamicType, net.bytebuddy.dynamic.scaffold.InstrumentedType, .TypeValidation, net.bytebuddy.dynamic.scaffold.subclass.ConstructorStrategy, net.bytebuddy.implementation.Implementation, .MethodAccessorFactory, net.bytebuddy.implementation.auxiliary.AuxiliaryType, net.bytebuddy.implementation.bind.MethodDelegationBinder, net.bytebuddy.implementation.bytecode.ByteCodeAppender, .Duplication, .StackManipulation, .TypeCreation, net.bytebuddy.implementation.bytecode.assign.Assigner, net.bytebuddy.implementation.bytecode.collection.ArrayAccess, net.bytebuddy.implementation.bytecode.constant.IntegerConstant, net.bytebuddy.implementation.bytecode.member.FieldAccess, .MethodInvocation, .MethodReturn, .MethodVariableAccess, net.bytebuddy.matcher.ElementMatchers, net.bytebuddy.utility.RandomString, net.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 net.bytebuddy.implementation.bind.annotation.SuperCall or net.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