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 ClassesModifier and TypeClassDescriptionprotected static enumA factory for creating a method handle representing a getter for the targeted field.protected static enumA factory for creating a method handle representing a setter for the targeted field.static classAn offset mapping for an unresolved field handle with an explicit declaring type.static classAn offset mapping for an unresolved field handle with an implicit declaring type.Nested classes/interfaces inherited from class 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.UnresolvedNested classes/interfaces inherited from interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T>, 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.ForDynamicConstant, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle, 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
ConstructorsConstructorDescriptionUnresolved(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access access, String name) Creates an offset mapping for an unresolved field handle. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FieldLocatorfieldLocator(TypeDescription instrumentedType) Resolves a field locator for the instrumented type.protected FieldDescriptionresolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves a description of the field being accessed.Methods inherited from class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle
resolve
-
Field Details
-
BEAN_PROPERTY
Indicates that the field's name should be resolved as a bean property.- See Also:
-
name
The name of the field or an empty string if the name should be resolved from the instrumented method.
-
-
Constructor Details
-
Unresolved
public Unresolved(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access access, 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 Details
-
resolve
protected FieldDescription resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Description copied from class:MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandleResolves a description of the field being accessed.- Specified by:
resolvein 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
Resolves a field locator for the instrumented type.- Parameters:
instrumentedType- The instrumented type.- Returns:
- Returns an appropriate field locator.
-