Class TypeProxy.MethodCall
- java.lang.Object
-
- net.bytebuddy.implementation.auxiliary.TypeProxy.MethodCall
-
- All Implemented Interfaces:
InstrumentedType.Prepareable,Implementation
- Enclosing class:
- TypeProxy
protected class TypeProxy.MethodCall extends java.lang.Object implements Implementation
An implementation for a method call of aTypeProxy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classTypeProxy.MethodCall.AppenderImplementation of a byte code appender for aTypeProxy.MethodCall.-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMethodCall(MethodAccessorFactory methodAccessorFactory)Creates a new method call implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteCodeAppenderappender(Implementation.Target implementationTarget)Creates a byte code appender that determines the implementation of the instrumented type's methods.booleanequals(java.lang.Object other)inthashCode()InstrumentedTypeprepare(InstrumentedType instrumentedType)Prepares a given instrumented type.
-
-
-
Constructor Detail
-
MethodCall
protected MethodCall(MethodAccessorFactory methodAccessorFactory)
Creates a new method call implementation.- Parameters:
methodAccessorFactory- The method accessor factory to query for the super method invocation.
-
-
Method Detail
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
Description copied from interface:InstrumentedType.PrepareablePrepares a given instrumented type.- Specified by:
preparein interfaceInstrumentedType.Prepareable- Parameters:
instrumentedType- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
appender
public ByteCodeAppender appender(Implementation.Target implementationTarget)
Description copied from interface:ImplementationCreates a byte code appender that determines the implementation of the instrumented type's methods.- Specified by:
appenderin interfaceImplementation- Parameters:
implementationTarget- The target of the current implementation.- Returns:
- A byte code appender for implementing methods delegated to this implementation. This byte code appender
is also responsible for handling methods that were added by this implementation on the call to
InstrumentedType.Prepareable.prepare(InstrumentedType).
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-