protected abstract static class TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.WithDrain extends TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending
TypeInitializer
registrations.Modifier and Type | Class and Description |
---|---|
protected static class |
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.WithDrain.WithActiveRecord
A code appending initialization handler with a drain that applies an explicit record.
|
protected static class |
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.WithDrain.WithoutActiveRecord
A code appending initialization handler with a drain that does not apply an explicit record.
|
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.FrameWriter, TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.WithDrain, TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending.WithoutDrain
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending, TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Creating
TypeInitializer.Drain.Default
Modifier and Type | Field and Description |
---|---|
protected Label |
appended
A label marking the beginning of the appended code.
|
protected Label |
original
A label marking the beginning og the original type initializer's code.
|
annotationValueFilterFactory, frameWriter, instrumentedType, localVariableLength, record, stackSize
api, mv
Modifier | Constructor and Description |
---|---|
protected |
WithDrain(MethodVisitor methodVisitor,
TypeDescription instrumentedType,
TypeWriter.MethodPool.Record record,
AnnotationValueFilter.Factory annotationValueFilterFactory,
boolean requireFrames,
boolean expandFrames)
Creates a new appending initialization handler with a drain.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
onAfterComplete(Implementation.Context implementationContext)
Invoked after completion of writing the type initializer.
|
protected void |
onComplete(Implementation.Context implementationContext)
Invoked upon completion of writing the type initializer.
|
protected void |
onStart()
Invoked after the user code was visited.
|
void |
visitEnd() |
apply, complete, of, visitCode, visitFrame, visitMaxs
visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitFieldInsn, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
protected final Label appended
protected final Label original
protected WithDrain(MethodVisitor methodVisitor, TypeDescription instrumentedType, TypeWriter.MethodPool.Record record, AnnotationValueFilter.Factory annotationValueFilterFactory, boolean requireFrames, boolean expandFrames)
methodVisitor
- The underlying method visitor.instrumentedType
- The instrumented type.record
- The method pool record for the type initializer.annotationValueFilterFactory
- The used annotation value filter factory.requireFrames
- true
if the visitor is required to add frames.expandFrames
- true
if the visitor is required to expand any added frame.protected void onStart()
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending
onStart
in class TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending
public void visitEnd()
visitEnd
in class TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending
protected void onComplete(Implementation.Context implementationContext)
TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending
onComplete
in class TypeWriter.Default.ForInlining.WithFullProcessing.InitializationHandler.Appending
implementationContext
- The implementation context to use.protected abstract void onAfterComplete(Implementation.Context implementationContext)
implementationContext
- The implementation context to use.Copyright © 2014–2020. All rights reserved.