U
- The best known loaded type for the dynamically created type.public static class TypeWriter.Default.ForInlining<U> extends TypeWriter.Default<U>
Modifier and Type | Class and Description |
---|---|
protected class |
TypeWriter.Default.ForInlining.RedefinitionClassVisitor
A class visitor which is capable of applying a redefinition of an existing class file.
|
TypeWriter.Default.ForCreation<U>, TypeWriter.Default.ForInlining<U>
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 |
ForInlining(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,
ClassFileLocator classFileLocator,
TypeDescription targetType,
MethodRebaseResolver methodRebaseResolver)
Creates a new type writer for inling a type into an existing type description.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
create(Implementation.Context.ExtractableView implementationContext)
Creates the instrumented type.
|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
forCreation, forRebasing, forRedefinition, make
protected ForInlining(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, ClassFileLocator classFileLocator, TypeDescription targetType, MethodRebaseResolver methodRebaseResolver)
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.classFileLocator
- The class file locator to use.targetType
- The target type that is to be redefined via inlining.methodRebaseResolver
- The method rebase resolver to use.public byte[] create(Implementation.Context.ExtractableView implementationContext)
TypeWriter.Default
create
in class TypeWriter.Default<U>
implementationContext
- The implementation context to use.public boolean equals(Object other)
equals
in class TypeWriter.Default<U>
public int hashCode()
hashCode
in class TypeWriter.Default<U>
Copyright © 2014–2015. All rights reserved.