Package net.bytebuddy.asm
Class Advice.OffsetMapping.ForField.Unresolved.WithImplicitType
java.lang.Object
net.bytebuddy.asm.Advice.OffsetMapping.ForField
net.bytebuddy.asm.Advice.OffsetMapping.ForField.Unresolved
net.bytebuddy.asm.Advice.OffsetMapping.ForField.Unresolved.WithImplicitType
- All Implemented Interfaces:
Advice.OffsetMapping
- Enclosing class:
Advice.OffsetMapping.ForField.Unresolved
public static class Advice.OffsetMapping.ForField.Unresolved.WithImplicitType
extends Advice.OffsetMapping.ForField.Unresolved
An offset mapping for a field with an implicit declaring type.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForField.Unresolved
Advice.OffsetMapping.ForField.Unresolved.Factory, Advice.OffsetMapping.ForField.Unresolved.WithExplicitType, Advice.OffsetMapping.ForField.Unresolved.WithImplicitType
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForField
Advice.OffsetMapping.ForField.Resolved, Advice.OffsetMapping.ForField.Unresolved
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.OffsetMapping
Advice.OffsetMapping.ForAllArguments, Advice.OffsetMapping.ForArgument, Advice.OffsetMapping.ForDynamicConstant, Advice.OffsetMapping.ForEnterValue, Advice.OffsetMapping.ForExitValue, Advice.OffsetMapping.ForField, Advice.OffsetMapping.ForFieldHandle, Advice.OffsetMapping.ForHandle, Advice.OffsetMapping.ForInstrumentedMethod, Advice.OffsetMapping.ForInstrumentedType, Advice.OffsetMapping.ForLocalValue, Advice.OffsetMapping.ForOrigin, Advice.OffsetMapping.ForReturnValue, Advice.OffsetMapping.ForSelfCallHandle, Advice.OffsetMapping.ForSerializedValue, Advice.OffsetMapping.ForStackManipulation, Advice.OffsetMapping.ForStubValue, Advice.OffsetMapping.ForThisReference, Advice.OffsetMapping.ForThrowable, Advice.OffsetMapping.ForUnusedValue, Advice.OffsetMapping.Sort, Advice.OffsetMapping.Target
-
Field Summary
Fields inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForField.Unresolved
BEAN_PROPERTY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionWithImplicitType
(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, String name) Creates an offset mapping for a field with an implicit declaring type.protected
WithImplicitType
(TypeDescription.Generic target, AnnotationDescription.Loadable<Advice.FieldValue> annotation) Creates an offset mapping for a field with an implicit declaring type. -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldLocator
fieldLocator
(TypeDescription instrumentedType) Returns a field locator for this instance.Methods inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForField.Unresolved
resolve
Methods inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForField
resolve
-
Constructor Details
-
WithImplicitType
protected WithImplicitType(TypeDescription.Generic target, AnnotationDescription.Loadable<Advice.FieldValue> annotation) Creates an offset mapping for a field with an implicit declaring type.- Parameters:
target
- The target type.annotation
- The annotation to represent.
-
WithImplicitType
public WithImplicitType(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, String name) Creates an offset mapping for a field with an implicit declaring type.- Parameters:
target
- The target type.readOnly
-true
if the field is read-only.typing
- The typing to apply.name
- The name of the field.
-
-
Method Details
-
fieldLocator
Description copied from class:Advice.OffsetMapping.ForField.Unresolved
Returns a field locator for this instance.- Specified by:
fieldLocator
in classAdvice.OffsetMapping.ForField.Unresolved
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- An appropriate field locator.
-