Package net.bytebuddy.implementation
Class MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved
-
- All Implemented Interfaces:
MethodCall.TargetHandler.Resolved
- Enclosing class:
- MethodCall.TargetHandler.ForSelfOrStaticInvocation
@Enhance protected static class MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved extends java.lang.Object implements MethodCall.TargetHandler.Resolved
A resolved target handler for a static or self-declared invocation.
-
-
Field Summary
Fields Modifier and Type Field Description private MethodDescriptioninstrumentedMethodThe instrumented method.private TypeDescriptioninstrumentedTypeThe instrumented type.
-
Constructor Summary
Constructors Modifier Constructor Description protectedResolved(TypeDescription instrumentedType, MethodDescription instrumentedMethod)Creates a resolved target handler for a static or self-declared invocation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescriptiongetTypeDescription()Returns the target's type description.StackManipulationtoStackManipulation(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing)Creates a stack manipulation to represent this resolved target handler.
-
-
-
Field Detail
-
instrumentedType
private final TypeDescription instrumentedType
The instrumented type.
-
instrumentedMethod
private final MethodDescription instrumentedMethod
The instrumented method.
-
-
Constructor Detail
-
Resolved
protected Resolved(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Creates a resolved target handler for a static or self-declared invocation.- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.
-
-
Method Detail
-
getTypeDescription
public TypeDescription getTypeDescription()
Returns the target's type description.- Specified by:
getTypeDescriptionin interfaceMethodCall.TargetHandler.Resolved- Returns:
- The target's type description.
-
toStackManipulation
public StackManipulation toStackManipulation(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing)
Creates a stack manipulation to represent this resolved target handler.- Specified by:
toStackManipulationin interfaceMethodCall.TargetHandler.Resolved- Parameters:
invokedMethod- The invoked method.assigner- The assigner to use.typing- The typing to apply.- Returns:
- A stack manipulation that implements this target handler.
-
-