Package net.bytebuddy.asm
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 java.lang.Object implements MemberSubstitution.Target
Represents a member that is the target of a substitution.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Target
MemberSubstitution.Target.ForDynamicInvocation, MemberSubstitution.Target.ForMember
-
-
Field Summary
Fields Modifier and Type Field Description private ByteCodeElement.Member
member
The member that is being accessed.private TypeDescription
receiverType
The actual (sub-)type on which the member is accessed.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForMember(TypeDescription receiverType, ByteCodeElement.Member member)
Creates a new target for a member that is being accessed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteCodeElement.Member
getMember()
Returns the member that is being accessed.java.lang.String
getName()
Returns the (internal) name of the target.TypeDescription
getReceiverType()
Returns the actual (sub-)type on which the member is accessed.boolean
isStaticDispatch()
Determines if the target is dispatched statically.
-
-
-
Field Detail
-
receiverType
private final TypeDescription receiverType
The actual (sub-)type on which the member is accessed.
-
member
private final ByteCodeElement.Member member
The member that is being accessed.
-
-
Constructor Detail
-
ForMember
protected ForMember(TypeDescription receiverType, ByteCodeElement.Member member)
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 Detail
-
getName
public java.lang.String getName()
Returns the (internal) name of the target.- Specified by:
getName
in interfaceMemberSubstitution.Target
- Returns:
- The name of the target.
-
isStaticDispatch
public boolean isStaticDispatch()
Determines if the target is dispatched statically.- Specified by:
isStaticDispatch
in interfaceMemberSubstitution.Target
- Returns:
true
if the target is dispatched statically.
-
getReceiverType
public TypeDescription getReceiverType()
Returns the actual (sub-)type on which the member is accessed.- Returns:
- The actual (sub-)type on which the member is accessed.
-
getMember
public ByteCodeElement.Member getMember()
Returns the member that is being accessed.- Returns:
- The member that is being accessed.
-
-