U
- The best known loaded type for the dynamically created type.public static class TypeWriter.Default.ForCreation<U> extends TypeWriter.Default<U>
TypeWriter.Default.ForCreation<U>, TypeWriter.Default.ForInlining<U>, TypeWriter.Default.ValidatingClassVisitor
TypeWriter.Default<S>, TypeWriter.FieldPool, TypeWriter.MethodPool
ASM_API_VERSION, ASM_MANUAL_FLAG, attributeAppender, auxiliaryTypeNamingStrategy, classFileVersion, classVisitorWrapper, explicitAuxiliaryTypes, fieldPool, instrumentedMethods, instrumentedType, loadedTypeInitializer, methodPool, typeInitializer
Modifier | Constructor and Description |
---|---|
protected |
ForCreation(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods)
Creates a new type writer for creating a new type.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
create(Implementation.Context.ExtractableView implementationContext)
Creates the instrumented type.
|
String |
toString() |
equals, forCreation, forRebasing, forRedefinition, hashCode, make
protected ForCreation(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, InstrumentedType.TypeInitializer typeInitializer, List<DynamicType> explicitAuxiliaryTypes, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, ClassVisitorWrapper classVisitorWrapper, TypeAttributeAppender attributeAppender, TypeWriter.FieldPool fieldPool, TypeWriter.MethodPool methodPool, MethodList instrumentedMethods)
instrumentedType
- The instrumented type that is to be written.loadedTypeInitializer
- The loaded type initializer of the instrumented type.typeInitializer
- The type initializer of the instrumented type.explicitAuxiliaryTypes
- A list of explicit auxiliary types that are to be added to the created dynamic type.classFileVersion
- The class file version of the written type.auxiliaryTypeNamingStrategy
- A naming strategy that is used for naming auxiliary types.classVisitorWrapper
- A class visitor wrapper to apply during instrumentation.attributeAppender
- The type attribute appender to apply.fieldPool
- The field pool to be used for instrumenting fields.methodPool
- The method pool to be used for instrumenting methods.instrumentedMethods
- A list of all instrumented methods.public byte[] create(Implementation.Context.ExtractableView implementationContext)
TypeWriter.Default
create
in class TypeWriter.Default<U>
implementationContext
- The implementation context to use.Copyright © 2014–2015. All rights reserved.