Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithExplicitType
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithExplicitType
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
@Enhance
public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithExplicitType
extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
An offset mapping for an unresolved field value with an explicit declaring type.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.Factory, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithExplicitType, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.WithImplicitType
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
FieldsFields inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
BEAN_PROPERTY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WithExplicitType
(TypeDescription.Generic target, AnnotationDescription.Loadable<MemberSubstitution.FieldValue> annotation, TypeDescription declaringType) Creates an offset mapping for the value of an unresolved field with an explicit declaring type.WithExplicitType
(TypeDescription.Generic target, Assigner.Typing typing, String name, TypeDescription declaringType) Creates an offset mapping for the value of an unresolved field with an explicit declaring type. -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldLocator
fieldLocator
(TypeDescription instrumentedType) Creates a field locator for the instrumented type.Methods inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
resolve
Methods inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField
resolve
-
Field Details
-
declaringType
The field's declaring type.
-
-
Constructor Details
-
WithExplicitType
protected WithExplicitType(TypeDescription.Generic target, AnnotationDescription.Loadable<MemberSubstitution.FieldValue> annotation, TypeDescription declaringType) Creates an offset mapping for the value of an unresolved field with an explicit declaring type.- Parameters:
target
- A description of the targeted type.annotation
- The annotation describing the field access.declaringType
- The field's declaring type.
-
WithExplicitType
public WithExplicitType(TypeDescription.Generic target, Assigner.Typing typing, String name, TypeDescription declaringType) Creates an offset mapping for the value of an unresolved field with an explicit declaring type.- 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.declaringType
- The field's declaring type.
-
-
Method Details
-
fieldLocator
Description copied from class:MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
Creates a field locator for the instrumented type.- Specified by:
fieldLocator
in classMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- An appropriate field locator.
-