Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
- Direct Known Subclasses:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithExplicitType
,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithImplicitType
@Enhance
public abstract static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField
An offset mapping for an unresolved field value.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum
A factory for creating an offset mapping for a field value.static class
An offset mapping for an unresolved field value with an explicit declaring type.static class
An offset mapping for an unresolved field with an implicit declaring type.Nested classes/interfaces inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Unresolved
(TypeDescription.Generic target, Assigner.Typing typing, String name) Creates an offset mapping for the value of an unresolved field. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FieldLocator
fieldLocator
(TypeDescription instrumentedType) Creates a field locator for the instrumented type.protected FieldDescription
resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a description of the field being accessed.Methods inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField
resolve
-
Field Details
-
BEAN_PROPERTY
Indicates that the name of the field should be inferred from the instrumented method's name as a bean property.- See Also:
-
name
The name of the field being accessed or an empty string if the name of the field should be inferred.
-
-
Constructor Details
-
Unresolved
Creates an offset mapping for the value of an unresolved field.- Parameters:
target
- A description of the targeted type.typing
- The typing to use.name
- The name of the field being accessed or an empty string if the name of the field should be inferred.
-
-
Method Details
-
resolve
protected FieldDescription resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Description copied from class:MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField
Resolves a description of the field being accessed.- Specified by:
resolve
in classMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.- Returns:
- A description of the field being accessed.
-
fieldLocator
Creates a field locator for the instrumented type.- Parameters:
instrumentedType
- The instrumented type.- Returns:
- An appropriate field locator.
-