Package | Description |
---|---|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodTransformer.Compound
A method transformer that applies several method transformers in a row.
|
static class |
MethodTransformer.NoOp
A method transformer that returns the original method.
|
static class |
MethodTransformer.Simple
A method transformer that modifies method properties by applying a
MethodTransformer.Simple.TokenTransformer . |
Modifier and Type | Field and Description |
---|---|
protected MethodTransformer |
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.methodTransformer
The method transformer to apply onto the method that is currently being implemented.
|
Modifier and Type | Method and Description |
---|---|
static MethodTransformer |
MethodTransformer.Simple.withModifiers(ModifierContributor.ForMethod... modifierTransformer)
Creates a transformer that enforces the supplied modifier contributors.
|
Modifier and Type | Method and Description |
---|---|
protected abstract DynamicType.Builder.MethodDefinition<V> |
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.materialize(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer)
Materializes the current builder as a method definition.
|
protected DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter.materialize(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer) |
protected DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.materialize(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodDefinition<S> |
DynamicType.Builder.MethodDefinition.transform(MethodTransformer methodTransformer)
Applies the supplied method transformer onto the previously defined or matched method.
|
DynamicType.Builder.MethodDefinition<V> |
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.transform(MethodTransformer methodTransformer) |
Constructor and Description |
---|
Adapter(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new adapter for a method definition.
|
AnnotationAdapter(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new annotation adapter.
|
AnnotationAdapter(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new annotation adapter.
|
Compound(MethodTransformer... methodTransformer)
Creates a new compound method transformer.
|
Constructor and Description |
---|
Compound(List<? extends MethodTransformer> methodTransformers)
Creates a new compound method transformer.
|
Modifier and Type | Method and Description |
---|---|
MethodRegistry |
MethodRegistry.append(LatentMatcher<? super MethodDescription> methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Appends the given method definition to this method registry, i.e. this configuration is applied last.
|
MethodRegistry |
MethodRegistry.Default.append(LatentMatcher<? super MethodDescription> matcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer) |
MethodRegistry |
MethodRegistry.prepend(LatentMatcher<? super MethodDescription> methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Prepends the given method definition to this method registry, i.e. this configuration is applied first.
|
MethodRegistry |
MethodRegistry.Default.prepend(LatentMatcher<? super MethodDescription> matcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer) |
Constructor and Description |
---|
Entry(LatentMatcher<? super MethodDescription> matcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new entry.
|
Copyright © 2014–2016. All rights reserved.