public abstract class AbstractClassEnhancePluginDefine extends Object
It provides the outline of enhancing the target class.
If you want to know more about enhancing, you should go to see ClassEnhancePluginDefine
| Constructor and Description |
|---|
AbstractClassEnhancePluginDefine() |
| Modifier and Type | Method and Description |
|---|---|
net.bytebuddy.dynamic.DynamicType.Builder<?> |
define(net.bytebuddy.description.type.TypeDescription typeDescription,
net.bytebuddy.dynamic.DynamicType.Builder<?> builder,
ClassLoader classLoader,
EnhanceContext context)
Main entrance of enhancing the class.
|
protected abstract net.bytebuddy.dynamic.DynamicType.Builder<?> |
enhance(net.bytebuddy.description.type.TypeDescription typeDescription,
net.bytebuddy.dynamic.DynamicType.Builder<?> newClassBuilder,
ClassLoader classLoader,
EnhanceContext context) |
protected abstract ClassMatch |
enhanceClass()
Define the
ClassMatch for filtering class. |
abstract ConstructorInterceptPoint[] |
getConstructorsInterceptPoints()
Constructor methods intercept point.
|
abstract InstanceMethodsInterceptPoint[] |
getInstanceMethodsInterceptPoints()
Instance methods intercept point.
|
abstract StaticMethodsInterceptPoint[] |
getStaticMethodsInterceptPoints()
Static methods intercept point.
|
boolean |
isBootstrapInstrumentation() |
protected String[] |
witnessClasses()
Witness classname list.
|
public net.bytebuddy.dynamic.DynamicType.Builder<?> define(net.bytebuddy.description.type.TypeDescription typeDescription,
net.bytebuddy.dynamic.DynamicType.Builder<?> builder,
ClassLoader classLoader,
EnhanceContext context)
throws PluginException
typeDescription - target class description.builder - byte-buddy's builder to manipulate target class's bytecode.classLoader - load the given transformClassnull if not be enhanced.PluginException - when set builder failure.protected abstract net.bytebuddy.dynamic.DynamicType.Builder<?> enhance(net.bytebuddy.description.type.TypeDescription typeDescription,
net.bytebuddy.dynamic.DynamicType.Builder<?> newClassBuilder,
ClassLoader classLoader,
EnhanceContext context)
throws PluginException
PluginExceptionprotected abstract ClassMatch enhanceClass()
ClassMatch for filtering class.ClassMatchprotected String[] witnessClasses()
public boolean isBootstrapInstrumentation()
public abstract ConstructorInterceptPoint[] getConstructorsInterceptPoints()
ConstructorInterceptPointConstructorInterceptPointpublic abstract InstanceMethodsInterceptPoint[] getInstanceMethodsInterceptPoints()
InstanceMethodsInterceptPointInstanceMethodsInterceptPointpublic abstract StaticMethodsInterceptPoint[] getStaticMethodsInterceptPoints()
StaticMethodsInterceptPointStaticMethodsInterceptPointCopyright © 2019 The Apache Software Foundation. All rights reserved.