public static class TypeWriter.Engine.ForCreation extends Object implements TypeWriter.Engine
TypeWriter.Engine.ForCreation, TypeWriter.Engine.ForRedefinitionASM_API_VERSION, ASM_MANUAL_FLAG| Constructor and Description |
|---|
ForCreation(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
List<? extends MethodDescription> invokableMethods,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool)
Creates a new type writer engine for redefining an existent class file.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
create(Instrumentation.Context.ExtractableView instrumentationContext)
Creates the class file.
|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
public ForCreation(TypeDescription instrumentedType, ClassFileVersion classFileVersion, List<? extends MethodDescription> invokableMethods, ClassVisitorWrapper classVisitorWrapper, TypeAttributeAppender attributeAppender, TypeWriter.FieldPool fieldPool, TypeWriter.MethodPool methodPool)
instrumentedType - The instrumented type that is created.classFileVersion - The class file version of the type that is to be written.invokableMethods - The invokable methods to consider for implementation.classVisitorWrapper - The class visitor wrapper to apply to the ASM class writer.attributeAppender - The attribute appender to apply.fieldPool - The field pool to use for writing fields.methodPool - The method pool to use for writing methods.public byte[] create(Instrumentation.Context.ExtractableView instrumentationContext)
TypeWriter.Enginecreate in interface TypeWriter.EngineinstrumentationContext - The instrumentation context to use for implementing the class file.Copyright © 2014. All rights reserved.