Top Inners Fields Constructors Methods
org.hibernate.bytecode.enhance.internal.bytebuddy

pack-priv abstract Class FieldWriterAppender

extends Object
implements ByteCodeAppender
Class Inheritance
All Implemented Interfaces
net.bytebuddy.implementation.bytecode.ByteCodeAppender
Known Direct Subclasses
org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender.FieldWriting, org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender.MethodDispatching
Imports
org.hibernate.bytecode.enhance.internal.bytebuddy.EnhancerImpl.AnnotatedFieldDescription, org.hibernate.bytecode.enhance.spi.EnhancerConstants, org.hibernate.engine.spi.PersistentAttributeInterceptor, net.bytebuddy.ClassFileVersion, net.bytebuddy.description.field.FieldDescription, net.bytebuddy.description.method.MethodDescription, net.bytebuddy.description.type.TypeDescription, net.bytebuddy.implementation.Implementation, net.bytebuddy.implementation.bytecode.ByteCodeAppender, net.bytebuddy.jar.asm.Label, .MethodVisitor, .Opcodes, .Type

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
protected final TypeDescription
protected final FieldDescription.InDefinedShape

Constructor Summary

AccessConstructor and Description
private
FieldWriterAppender(TypeDescription managedCtClass, FieldDescription.InDefinedShape persistentFieldAsDefined)

Method Summary

Modifier and TypeMethod and Description
public ByteCodeAppender.Size
apply(MethodVisitor
The method visitor to which the byte code appender writes its code to.
methodVisitor
,
Implementation.Context
The implementation context of the current type creation process.
implementationContext
,
MethodDescription
The method that is the target of the instrumentation.
instrumentedMethod
)

Implements net.bytebuddy.implementation.bytecode.ByteCodeAppender.apply.

Applies this byte code appender to a type creation process.
protected abstract void
fieldRead(MethodVisitor methodVisitor)

protected abstract void
fieldWrite(MethodVisitor methodVisitor)

pack-priv static ByteCodeAppender
of(TypeDescription managedCtClass, EnhancerImpl.AnnotatedFieldDescription persistentField)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

managedCtClassback to summary
protected final TypeDescription managedCtClass
persistentFieldAsDefinedback to summary
protected final FieldDescription.InDefinedShape persistentFieldAsDefined

Constructor Detail

FieldWriterAppenderback to summary
private FieldWriterAppender(TypeDescription managedCtClass, FieldDescription.InDefinedShape persistentFieldAsDefined)

Method Detail

applyback to summary
public ByteCodeAppender.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)

Implements net.bytebuddy.implementation.bytecode.ByteCodeAppender.apply.

Doc from net.bytebuddy.implementation.bytecode.ByteCodeAppender.apply.

Applies this byte code appender to a type creation process.

Parameters
methodVisitor:MethodVisitor

The method visitor to which the byte code appender writes its code to.

implementationContext:Implementation.Context

The implementation context of the current type creation process.

instrumentedMethod:MethodDescription

The method that is the target of the instrumentation.

Returns:ByteCodeAppender.Size

The required size for the applied byte code to run.

Annotations
@Override
fieldReadback to summary
protected abstract void fieldRead(MethodVisitor methodVisitor)
fieldWriteback to summary
protected abstract void fieldWrite(MethodVisitor methodVisitor)
ofback to summary
pack-priv static ByteCodeAppender of(TypeDescription managedCtClass, EnhancerImpl.AnnotatedFieldDescription persistentField)
org.hibernate.bytecode.enhance.internal.bytebuddy back to summary

private Class FieldWriterAppender.FieldWriting

extends FieldWriterAppender
Class Inheritance

Field Summary

Inherited from org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender:
managedCtClasspersistentFieldAsDefined

Constructor Summary

AccessConstructor and Description
private
FieldWriting(TypeDescription managedCtClass, FieldDescription.InDefinedShape persistentFieldAsDefined)

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
Inherited from org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender:
applyof

Constructor Detail

FieldWritingback to summary
private FieldWriting(TypeDescription managedCtClass, FieldDescription.InDefinedShape persistentFieldAsDefined)

Method Detail

fieldReadback to summary
protected void fieldRead(MethodVisitor methodVisitor)

Implements abstract org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender.fieldRead.

Annotations
@Override
fieldWriteback to summary
protected void fieldWrite(MethodVisitor methodVisitor)

Implements abstract org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender.fieldWrite.

Annotations
@Override
org.hibernate.bytecode.enhance.internal.bytebuddy back to summary

private Class FieldWriterAppender.MethodDispatching

extends FieldWriterAppender
Class Inheritance

Field Summary

Inherited from org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender:
managedCtClasspersistentFieldAsDefined

Constructor Summary

AccessConstructor and Description
private
MethodDispatching(TypeDescription managedCtClass, FieldDescription.InDefinedShape persistentFieldAsDefined)

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
Inherited from org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender:
applyof

Constructor Detail

MethodDispatchingback to summary
private MethodDispatching(TypeDescription managedCtClass, FieldDescription.InDefinedShape persistentFieldAsDefined)

Method Detail

fieldReadback to summary
protected void fieldRead(MethodVisitor methodVisitor)

Implements abstract org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender.fieldRead.

Annotations
@Override
fieldWriteback to summary
protected void fieldWrite(MethodVisitor methodVisitor)

Implements abstract org.hibernate.bytecode.enhance.internal.bytebuddy.FieldWriterAppender.fieldWrite.

Annotations
@Override