Class MemberSubstitution.Target.ForMember
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Target.ForMember
- All Implemented Interfaces:
MemberSubstitution.Target
- Enclosing interface:
MemberSubstitution.Target
public static class MemberSubstitution.Target.ForMember
extends Object
implements MemberSubstitution.Target
Represents a member that is the target of a substitution.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MemberSubstitution.Target
MemberSubstitution.Target.ForDynamicInvocation, MemberSubstitution.Target.ForMember -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteCodeElement.MemberThe member that is being accessed.private final TypeDescriptionThe actual (sub-)type on which the member is accessed. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForMember(TypeDescription receiverType, ByteCodeElement.Member member) Creates a new target for a member that is being accessed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the member that is being accessed.getName()Returns the (internal) name of the target.Returns the actual (sub-)type on which the member is accessed.booleanDetermines if the target is dispatched statically.
-
Field Details
-
receiverType
The actual (sub-)type on which the member is accessed. -
member
The member that is being accessed.
-
-
Constructor Details
-
ForMember
Creates a new target for a member that is being accessed.- Parameters:
receiverType- The actual (sub-)type on which the member is accessed.member- The member that is being accessed.
-
-
Method Details
-
getName
Returns the (internal) name of the target.- Specified by:
getNamein interfaceMemberSubstitution.Target- Returns:
- The name of the target.
-
isStaticDispatch
public boolean isStaticDispatch()Determines if the target is dispatched statically.- Specified by:
isStaticDispatchin interfaceMemberSubstitution.Target- Returns:
trueif the target is dispatched statically.
-
getReceiverType
Returns the actual (sub-)type on which the member is accessed.- Returns:
- The actual (sub-)type on which the member is accessed.
-
getMember
Returns the member that is being accessed.- Returns:
- The member that is being accessed.
-