public static interface Implementation.Context.ExtractableView extends Implementation.Context
Implementation.Context
which
allows the retrieval of any registered auxiliary type.Modifier and Type | Interface and Description |
---|---|
static class |
Implementation.Context.ExtractableView.AbstractBase
An abstract base implementation of an extractable view of an implementation context.
|
Implementation.Context.Default, Implementation.Context.Disabled, Implementation.Context.ExtractableView, Implementation.Context.Factory, Implementation.Context.FrameGeneration
MethodAccessorFactory.AccessType, MethodAccessorFactory.Illegal
Modifier and Type | Method and Description |
---|---|
void |
drain(TypeInitializer.Drain drain,
ClassVisitor classVisitor,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Writes any information that was registered with an
Implementation.Context
to the provided class visitor. |
List<DynamicType> |
getAuxiliaryTypes()
Returns any
AuxiliaryType that was registered
with this Implementation.Context . |
boolean |
isEnabled()
Returns
true if this implementation context permits the registration of any implicit type initializers. |
cache, getClassFileVersion, getFrameGeneration, getInstrumentedType, register
registerAccessorFor, registerGetterFor, registerSetterFor
boolean isEnabled()
true
if this implementation context permits the registration of any implicit type initializers.true
if this implementation context permits the registration of any implicit type initializers.List<DynamicType> getAuxiliaryTypes()
AuxiliaryType
that was registered
with this Implementation.Context
.void drain(TypeInitializer.Drain drain, ClassVisitor classVisitor, AnnotationValueFilter.Factory annotationValueFilterFactory)
Implementation.Context
to the provided class visitor. This contains any fields for value caching, any accessor method and it
writes the type initializer. The type initializer must therefore never be written manually.drain
- The drain to write the type initializer to.classVisitor
- The class visitor to which the extractable view is to be written.annotationValueFilterFactory
- The annotation value filter factory to apply when writing annotation.Copyright © 2014–2024. All rights reserved.