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.FrameComputingClassWriter, TypeWriter.Default.ValidatingClassVisitorTypeWriter.Default<S>, TypeWriter.FieldPool, TypeWriter.MethodPoolannotationRetention, annotationValueFilterFactory, asmVisitorWrapper, auxiliaryTypeNamingStrategy, classFileVersion, explicitAuxiliaryTypes, fieldPool, implementationContextFactory, instrumentedMethods, instrumentedType, loadedTypeInitializer, methodPool, typeAttributeAppender, typeInitializer, typePool, typeValidationDUMP_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
ForCreation(TypeDescription instrumentedType,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
List<DynamicType> explicitAuxiliaryTypes,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
TypePool typePool)
Creates a new default type writer for creating a new type that is not based on an existing class file.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
create(Implementation.Context.ExtractableView implementationContext)
Creates the instrumented type.
|
String |
toString() |
equals, forCreation, forRebasing, forRedefinition, hashCode, makeprotected ForCreation(TypeDescription instrumentedType, TypeWriter.FieldPool fieldPool, TypeWriter.MethodPool methodPool, List<DynamicType> explicitAuxiliaryTypes, MethodList<?> instrumentedMethods, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, TypePool typePool)
instrumentedType - The instrumented type to be created.fieldPool - The field pool to use.methodPool - The method pool to use.explicitAuxiliaryTypes - The explicit auxiliary types to add to the created type.instrumentedMethods - The instrumented methods relevant to this type creation.loadedTypeInitializer - The loaded type initializer to apply onto the created type after loading.typeInitializer - The type initializer to include in the created type's type initializer.typeAttributeAppender - The type attribute appender to apply onto the instrumented type.asmVisitorWrapper - The ASM visitor wrapper to apply onto the class writer.classFileVersion - The class file version to write the instrumented type in and to apply when creating auxiliary types.annotationValueFilterFactory - The annotation value filter factory to apply.annotationRetention - The annotation retention to apply.auxiliaryTypeNamingStrategy - The naming strategy for auxiliary types to apply.implementationContextFactory - The implementation context factory to apply.typeValidation - Determines if a type should be explicitly validated.typePool - The type pool to use for computing stack map frames, if required.public byte[] create(Implementation.Context.ExtractableView implementationContext)
TypeWriter.Defaultcreate in class TypeWriter.Default<U>implementationContext - The implementation context to use.Copyright © 2014–2016. All rights reserved.