protected static class Implementation.Context.Default.AccessorMethodDelegation extends Implementation.Context.Default.AbstractDelegationRecord
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.WithoutBody
ByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.Size
TypeWriter.MethodPool.Record.AccessBridgeWrapper, TypeWriter.MethodPool.Record.ForDefinedMethod, TypeWriter.MethodPool.Record.ForNonImplementedMethod, TypeWriter.MethodPool.Record.Sort
methodDescription
Modifier | Constructor and Description |
---|---|
protected |
AccessorMethodDelegation(MethodDescription methodDescription,
StackManipulation accessorMethodInvocation)
Creates a new accessor method delegation.
|
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.
|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
applyAttributes, applyBody, applyCode, applyHead, getMethod, getSort, getVisibility, prepend
apply
protected AccessorMethodDelegation(MethodDescription methodDescription, StackManipulation accessorMethodInvocation)
methodDescription
- The accessor method.accessorMethodInvocation
- The stack manipulation that represents the requested special method invocation.public ByteCodeAppender.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)
ByteCodeAppender
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.public boolean equals(Object other)
equals
in class Implementation.Context.Default.AbstractDelegationRecord
public int hashCode()
hashCode
in class Implementation.Context.Default.AbstractDelegationRecord
Copyright © 2014–2016. All rights reserved.