protected abstract static class Implementation.Context.Default.AbstractDelegationRecord extends TypeWriter.MethodPool.Record.ForDefinedMethod implements ByteCodeAppender
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.ForNonDefinedMethod, TypeWriter.MethodPool.Record.Sort
Modifier and Type | Field and Description |
---|---|
protected MethodDescription |
methodDescription
The delegation method.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractDelegationRecord(MethodDescription methodDescription)
Creates a new delegation record.
|
Modifier and Type | Method and Description |
---|---|
void |
applyBody(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Applies the body of this entry.
|
void |
applyHead(MethodVisitor methodVisitor)
Applies the head of this entry.
|
boolean |
equals(Object other) |
MethodDescription |
getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.
|
TypeWriter.MethodPool.Record.Sort |
getSort()
Returns the sort of this method instrumentation.
|
Visibility |
getVisibility()
The visibility to enforce for this method.
|
int |
hashCode() |
TypeWriter.MethodPool.Record |
prepend(ByteCodeAppender byteCodeAppender)
Prepends the given method appender to this entry.
|
apply
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
apply
protected final MethodDescription methodDescription
protected AbstractDelegationRecord(MethodDescription methodDescription)
methodDescription
- The delegation method.public MethodDescription getMethod()
TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.Sort.SKIPPED
.getMethod
in interface TypeWriter.MethodPool.Record
public TypeWriter.MethodPool.Record.Sort getSort()
TypeWriter.MethodPool.Record
getSort
in interface TypeWriter.MethodPool.Record
public Visibility getVisibility()
TypeWriter.MethodPool.Record
getVisibility
in interface TypeWriter.MethodPool.Record
public void applyHead(MethodVisitor methodVisitor)
TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.Sort.SKIPPED
.applyHead
in interface TypeWriter.MethodPool.Record
methodVisitor
- The method visitor to which this entry should be applied.public void applyBody(MethodVisitor methodVisitor, Implementation.Context implementationContext, AnnotationValueFilter.Factory annotationValueFilterFactory)
TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.Sort.IMPLEMENTED
.applyBody
in interface TypeWriter.MethodPool.Record
methodVisitor
- The method visitor to which this entry should be applied.implementationContext
- The implementation context to which this entry should be applied.annotationValueFilterFactory
- The annotation value filter factory to apply when writing annotations.public TypeWriter.MethodPool.Record prepend(ByteCodeAppender byteCodeAppender)
TypeWriter.MethodPool.Record
prepend
in interface TypeWriter.MethodPool.Record
byteCodeAppender
- The byte code appender to prepend.Copyright © 2014–2016. All rights reserved.