@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.Sort| Modifier and Type | Field and Description |
|---|---|
private StackManipulation |
accessorMethodInvocation
The stack manipulation that represents the requested special method invocation.
|
methodDescription, visibility| Modifier | Constructor and Description |
|---|---|
private |
AccessorMethodDelegation(MethodDescription.InDefinedShape methodDescription,
Visibility visibility,
StackManipulation accessorMethodInvocation)
Creates a delegation to an accessor method.
|
protected |
AccessorMethodDelegation(TypeDescription instrumentedType,
java.lang.String suffix,
MethodAccessorFactory.AccessType accessType,
Implementation.SpecialMethodInvocation specialMethodInvocation)
Creates a delegation to an accessor method.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender.Size |
apply(org.objectweb.asm.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, prependapplyprivate final StackManipulation accessorMethodInvocation
protected AccessorMethodDelegation(TypeDescription instrumentedType, java.lang.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.private AccessorMethodDelegation(MethodDescription.InDefinedShape methodDescription, Visibility visibility, StackManipulation accessorMethodInvocation)
methodDescription - The accessor method.visibility - The method's visibility.accessorMethodInvocation - 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(org.objectweb.asm.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.