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 interface |
Implementation.Context.ExtractableView.InjectedCode
When draining an implementation context, a type initializer might be written to the created class
file.
|
Implementation.Context.Default, Implementation.Context.ExtractableView
Modifier and Type | Field and Description |
---|---|
static int |
FIELD_CACHE_MODIFIER
A default modifier for a field that serves as a cache.
|
Modifier and Type | Method and Description |
---|---|
void |
drain(ClassVisitor classVisitor,
TypeWriter.MethodPool methodPool,
Implementation.Context.ExtractableView.InjectedCode injectedCode)
Writes any information that was registered with an
Implementation.Context
to the provided class visitor. |
List<DynamicType> |
getRegisteredAuxiliaryTypes()
Returns any
AuxiliaryType that was registered
with this Implementation.Context . |
cache, register
static final int FIELD_CACHE_MODIFIER
List<DynamicType> getRegisteredAuxiliaryTypes()
AuxiliaryType
that was registered
with this Implementation.Context
.void drain(ClassVisitor classVisitor, TypeWriter.MethodPool methodPool, Implementation.Context.ExtractableView.InjectedCode injectedCode)
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.classVisitor
- The class visitor to which the extractable view is to be written.methodPool
- A method pool which is queried for any user code to add to the type initializer.injectedCode
- Potential code that is to be injected into the type initializer.Copyright © 2014–2015. All rights reserved.