Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved
- java.lang.Object
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved
-
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
- Direct Known Subclasses:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.WithExplicitType
,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.WithImplicitType
- Enclosing class:
- MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle
@Enhance public abstract static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle
An offset mapping for an unresolved field handle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory
A factory for creating a method handle representing a getter for the targeted field.protected static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.SetterFactory
A factory for creating a method handle representing a setter for the targeted field.static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.WithExplicitType
An offset mapping for an unresolved field handle with an explicit declaring type.static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.WithImplicitType
An offset mapping for an unresolved field handle with an implicit declaring type.-
Nested classes/interfaces inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Resolved, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends java.lang.annotation.Annotation>, 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 field's name should be resolved as a bean property.private java.lang.String
name
The name of the field or an empty string if the name should be resolved from the instrumented method.
-
Constructor Summary
Constructors Constructor Description Unresolved(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access access, java.lang.String name)
Creates an offset mapping for an unresolved field handle.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract FieldLocator
fieldLocator(TypeDescription instrumentedType)
Resolves 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.ForFieldHandle
resolve
-
-
-
-
Field Detail
-
BEAN_PROPERTY
protected static final java.lang.String BEAN_PROPERTY
Indicates that the field's name should be resolved as a bean property.- See Also:
- Constant Field Values
-
name
private final java.lang.String name
The name of the field or an empty string if the name should be resolved from the instrumented method.
-
-
Constructor Detail
-
Unresolved
public Unresolved(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access access, java.lang.String name)
Creates an offset mapping for an unresolved field handle.- Parameters:
access
- The type of access to the field.name
- The name of the field or an empty string if the name should be resolved from the instrumented method.
-
-
Method Detail
-
resolve
protected FieldDescription resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Description copied from class:MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle
Resolves a description of the field being accessed.- Specified by:
resolve
in classMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.- Returns:
- A description of the field being accessed.
-
fieldLocator
protected abstract FieldLocator fieldLocator(TypeDescription instrumentedType)
Resolves a field locator for the instrumented type.- Parameters:
instrumentedType
- The instrumented type.- Returns:
- Returns an appropriate field locator.
-
-