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 Classes Modifier and Type Class Description protected static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.Factory
A factory for creating an offset mapping for a field value.static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithExplicitType
An offset mapping for an unresolved field value with an explicit declaring type.static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithImplicitType
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 Modifier and Type Field Description protected static java.lang.String
BEAN_PROPERTY
Indicates that the name of the field should be inferred from the instrumented method's name as a bean property.private java.lang.String
name
The name of the field being accessed or an empty string if the name of the field should be inferred.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Unresolved(TypeDescription.Generic target, Assigner.Typing typing, java.lang.String name)
Creates an offset mapping for the value of an unresolved field.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
BEAN_PROPERTY
protected static final java.lang.String BEAN_PROPERTY
Indicates that the name of the field should be inferred from the instrumented method's name as a bean property.- See Also:
- Constant Field Values
-
name
private final java.lang.String name
The name of the field being accessed or an empty string if the name of the field should be inferred.
-
-
Constructor Detail
-
Unresolved
protected Unresolved(TypeDescription.Generic target, Assigner.Typing typing, java.lang.String name)
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 Detail
-
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
protected abstract FieldLocator fieldLocator(TypeDescription instrumentedType)
Creates a field locator for the instrumented type.- Parameters:
instrumentedType
- The instrumented type.- Returns:
- An appropriate field locator.
-
-