public static class TypeWriter.Engine.ForRedefinition extends Object implements TypeWriter.Engine
| Modifier and Type | Class and Description |
|---|---|
protected class |
TypeWriter.Engine.ForRedefinition.RedefinitionClassVisitor
A class visitor which is capable of applying a redefinition of an existing class file.
|
TypeWriter.Engine.ForCreation, TypeWriter.Engine.ForRedefinitionASM_API_VERSION, ASM_MANUAL_FLAG| Constructor and Description |
|---|
ForRedefinition(TypeDescription instrumentedType,
TypeDescription targetType,
ClassFileVersion classFileVersion,
List<? extends MethodDescription> invokableMethods,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
ClassFileLocator classFileLocator,
MethodRebaseResolver methodRebaseResolver)
Creates a new type writer that reads a class file and weaves in user defined method implementations.
|
| 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 ForRedefinition(TypeDescription instrumentedType, TypeDescription targetType, ClassFileVersion classFileVersion, List<? extends MethodDescription> invokableMethods, ClassVisitorWrapper classVisitorWrapper, TypeAttributeAppender attributeAppender, TypeWriter.FieldPool fieldPool, TypeWriter.MethodPool methodPool, ClassFileLocator classFileLocator, MethodRebaseResolver methodRebaseResolver)
instrumentedType - The instrumented type that is written.targetType - The original type which is redefined.classFileVersion - The specified class file version.invokableMethods - The methods that are to be considered for implementation.classVisitorWrapper - A wrapper to apply to the actual class visitor.attributeAppender - The attribute appender to apply.fieldPool - The field pool to use for writing fields.methodPool - The method pool to use for writing fields.classFileLocator - A provider for creating an input stream.methodRebaseResolver - A resolver for method rebasing.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.