Interface Implementation.Context.ExtractableView
- All Superinterfaces:
Implementation.Context, MethodAccessorFactory
- All Known Implementing Classes:
Implementation.Context.Default, Implementation.Context.Disabled, Implementation.Context.ExtractableView.AbstractBase
- Enclosing interface:
Implementation.Context
Represents an extractable view of an
Implementation.Context which
allows the retrieval of any registered auxiliary type.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn abstract base implementation of an extractable view of an implementation context.Nested classes/interfaces inherited from interface Implementation.Context
Implementation.Context.Default, Implementation.Context.Disabled, Implementation.Context.ExtractableView, Implementation.Context.Factory, Implementation.Context.FrameGenerationNested classes/interfaces inherited from interface MethodAccessorFactory
MethodAccessorFactory.AccessType, MethodAccessorFactory.Illegal -
Method Summary
Modifier and TypeMethodDescriptionvoiddrain(TypeInitializer.Drain drain, org.objectweb.asm.ClassVisitor classVisitor, AnnotationValueFilter.Factory annotationValueFilterFactory) Writes any information that was registered with anImplementation.Contextto the provided class visitor.Returns anyAuxiliaryTypethat was registered with thisImplementation.Context.booleanReturnstrueif this implementation context permits the registration of any implicit type initializers.Methods inherited from interface Implementation.Context
cache, getClassFileVersion, getFrameGeneration, getInstrumentedType, registerMethods inherited from interface MethodAccessorFactory
registerAccessorFor, registerGetterFor, registerSetterFor
-
Method Details
-
isEnabled
boolean isEnabled()Returnstrueif this implementation context permits the registration of any implicit type initializers.- Returns:
trueif this implementation context permits the registration of any implicit type initializers.
-
getAuxiliaryTypes
List<DynamicType> getAuxiliaryTypes()Returns anyAuxiliaryTypethat was registered with thisImplementation.Context.- Returns:
- A list of all manifested registered auxiliary types.
-
drain
void drain(TypeInitializer.Drain drain, org.objectweb.asm.ClassVisitor classVisitor, AnnotationValueFilter.Factory annotationValueFilterFactory) Writes any information that was registered with anImplementation.Contextto 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.- Parameters:
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.
-