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.
|
net.bytebuddy.dynamic.scaffold.subclass |
All classes and types in this package are related to creating a
DynamicType by
creating a subclass of a given type. |
net.bytebuddy.implementation.attribute |
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e. fields, types and byte code methods.
|
Modifier and Type | Field and Description |
---|---|
protected MethodAttributeAppender.Factory |
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.methodAttributeAppenderFactory
The method attribute appender factory to apply onto the method that is currently being implemented.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition<S> |
DynamicType.Builder.MethodDefinition.attribute(MethodAttributeAppender.Factory methodAttributeAppenderFactory)
Applies the supplied method attribute appender factory onto the previously defined or matched method.
|
DynamicType.Builder.MethodDefinition<V> |
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.attribute(MethodAttributeAppender.Factory methodAttributeAppenderFactory) |
protected abstract DynamicType.Builder.MethodDefinition<V> |
DynamicType.Builder.MethodDefinition.AbstractBase.Adapter.materialize(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
Transformer<MethodDescription> transformer)
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,
Transformer<MethodDescription> transformer) |
protected DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.materialize(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
Transformer<MethodDescription> transformer) |
Constructor and Description |
---|
Adapter(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
Transformer<MethodDescription> transformer)
Creates a new adapter for a method definition.
|
AnnotationAdapter(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
Transformer<MethodDescription> transformer)
Creates a new annotation adapter.
|
AnnotationAdapter(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory methodAttributeAppenderFactory,
Transformer<MethodDescription> transformer)
Creates a new annotation adapter.
|
Modifier and Type | Method and Description |
---|---|
protected MethodAttributeAppender.Factory |
MethodRegistry.Default.Prepared.Entry.getAppenderFactory()
Returns this entry's attribute appender factory.
|
Modifier and Type | Method and Description |
---|---|
MethodRegistry |
MethodRegistry.append(LatentMatcher<? super MethodDescription> methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
Transformer<MethodDescription> transformer)
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,
Transformer<MethodDescription> transformer) |
MethodRegistry |
MethodRegistry.prepend(LatentMatcher<? super MethodDescription> methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
Transformer<MethodDescription> transformer)
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,
Transformer<MethodDescription> transformer) |
Constructor and Description |
---|
Entry(LatentMatcher<? super MethodDescription> matcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
Transformer<MethodDescription> transformer)
Creates a new entry.
|
Entry(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodDescription methodDescription,
Set<MethodDescription.TypeToken> typeTokens,
Visibility visibility,
boolean bridgeMethod)
Creates a new prepared entry.
|
Modifier and Type | Method and Description |
---|---|
protected abstract MethodRegistry |
ConstructorStrategy.Default.doInject(MethodRegistry methodRegistry,
MethodAttributeAppender.Factory methodAttributeAppenderFactory)
Applies the actual injection with a method attribute appender factory supplied.
|
ConstructorStrategy |
ConstructorStrategy.Default.with(MethodAttributeAppender.Factory methodAttributeAppenderFactory)
Returns a constructor strategy that supplies the supplied method attribute appender factory.
|
Constructor and Description |
---|
WithMethodAttributeAppenderFactory(ConstructorStrategy.Default delegate,
MethodAttributeAppender.Factory methodAttributeAppenderFactory)
Creates a new wrapper for a default constructor strategy.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodAttributeAppender.Explicit
Appends an annotation to a method or method parameter.
|
static class |
MethodAttributeAppender.Factory.Compound
A method attribute appender factory that combines several method attribute appender factories to be
represented as a single factory.
|
static class |
MethodAttributeAppender.ForInstrumentedMethod
Implementation of a method attribute appender that writes all annotations of the instrumented method to the
method that is being created.
|
static class |
MethodAttributeAppender.ForReceiverType
A method attribute appender that writes a receiver type.
|
static class |
MethodAttributeAppender.NoOp
A method attribute appender that does not append any attributes.
|
Modifier and Type | Method and Description |
---|---|
static MethodAttributeAppender.Factory |
MethodAttributeAppender.Explicit.of(MethodDescription methodDescription)
Creates a method attribute appender factory that writes all annotations of a given method, both the method
annotations themselves and all annotations that are defined for every parameter.
|
Constructor and Description |
---|
Compound(MethodAttributeAppender.Factory... factory)
Creates a new compound method attribute appender factory.
|
Constructor and Description |
---|
Compound(List<? extends MethodAttributeAppender.Factory> factories)
Creates a new compound method attribute appender factory.
|
Copyright © 2014–2017. All rights reserved.