@HashCodeAndEqualsPlugin.Enhance protected static class Implementation.Context.Default.AccessorMethodDelegation extends Implementation.Context.Default.DelegationRecord
TypeWriter.MethodPool.Record for implementing
an accessor method.TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge, TypeWriter.MethodPool.Record.ForDefinedMethod.WithAnnotationDefaultValue, TypeWriter.MethodPool.Record.ForDefinedMethod.WithBody, TypeWriter.MethodPool.Record.ForDefinedMethod.WithoutBodyByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.SizeTypeWriter.MethodPool.Record.AccessBridgeWrapper, TypeWriter.MethodPool.Record.ForDefinedMethod, TypeWriter.MethodPool.Record.ForNonImplementedMethod, TypeWriter.MethodPool.Record.SortmethodDescription, visibility| Modifier | Constructor and Description |
|---|---|
protected |
AccessorMethodDelegation(TypeDescription instrumentedType,
String suffix,
MethodAccessorFactory.AccessType accessType,
Implementation.SpecialMethodInvocation specialMethodInvocation)
Creates a delegation to an accessor method.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender.Size |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
MethodDescription instrumentedMethod)
Applies this byte code appender to a type creation process.
|
protected Implementation.Context.Default.DelegationRecord |
with(MethodAccessorFactory.AccessType accessType)
Returns this delegation record with the minimal visibility represented by the supplied access type.
|
applyAttributes, applyBody, applyCode, applyHead, getMethod, getSort, getVisibility, prependapplyprotected AccessorMethodDelegation(TypeDescription instrumentedType, String suffix, MethodAccessorFactory.AccessType accessType, Implementation.SpecialMethodInvocation specialMethodInvocation)
instrumentedType - The instrumented type.suffix - The suffix to append to the method.accessType - The access type.specialMethodInvocation - The actual method's invocation.protected Implementation.Context.Default.DelegationRecord with(MethodAccessorFactory.AccessType accessType)
Implementation.Context.Default.DelegationRecordwith in class Implementation.Context.Default.DelegationRecordaccessType - The access type to enforce.public ByteCodeAppender.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)
methodVisitor - The method visitor to which the byte code appender writes its code to.implementationContext - The implementation context of the current type creation process.instrumentedMethod - The method that is the target of the instrumentation.Copyright © 2014–2023. All rights reserved.