Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
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 | Field and Description |
---|---|
protected MethodTransformer |
ByteBuddy.MethodAnnotationTarget.methodTransformer
The method transformer to apply.
|
Constructor and Description |
---|
MethodAnnotationTarget(ClassFileVersion classFileVersion,
NamingStrategy.Unbound namingStrategy,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
List<TypeDescription> interfaceTypes,
ElementMatcher<? super MethodDescription> ignoredMethods,
ClassVisitorWrapper classVisitorWrapper,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
TypeAttributeAppender typeAttributeAppender,
MethodGraph.Compiler methodGraphCompiler,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new method annotation target.
|
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.Transformer . |
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 |
---|---|
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.MatchedMethodInterception.intercept(Implementation implementation,
MethodTransformer methodTransformer)
Intercepts the currently selected method by a given implementation.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultMatchedMethodInterception.intercept(Implementation implementation,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultExceptionDeclarableMethodInterception.intercept(Implementation implementation,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultOptionalMatchedMethodInterception.intercept(Implementation implementation,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.MatchedMethodInterception.withDefaultValue(Object value,
Class<?> type,
MethodTransformer methodTransformer)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultMatchedMethodInterception.withDefaultValue(Object value,
Class<?> type,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultExceptionDeclarableMethodInterception.withDefaultValue(Object value,
Class<?> type,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultOptionalMatchedMethodInterception.withDefaultValue(Object value,
Class<?> type,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.MatchedMethodInterception.withDefaultValue(Object value,
MethodTransformer methodTransformer)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultMatchedMethodInterception.withDefaultValue(Object value,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultExceptionDeclarableMethodInterception.withDefaultValue(Object value,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultOptionalMatchedMethodInterception.withDefaultValue(Object value,
MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.MatchedMethodInterception.withoutCode(MethodTransformer methodTransformer)
Implements the currently selected methods as
abstract methods. |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultMatchedMethodInterception.withoutCode(MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultExceptionDeclarableMethodInterception.withoutCode(MethodTransformer methodTransformer) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultOptionalMatchedMethodInterception.withoutCode(MethodTransformer methodTransformer) |
Constructor and Description |
---|
Compound(MethodTransformer... methodTransformer)
Creates a new compound method transformer.
|
DefaultMethodAnnotationTarget(LatentMethodMatcher methodMatcher,
List<MethodDescription.Token> methodTokens,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new default method annotation target.
|
Constructor and Description |
---|
Compound(List<? extends MethodTransformer> methodTransformers)
Creates a new compound method transformer.
|
Modifier and Type | Method and Description |
---|---|
MethodRegistry |
MethodRegistry.append(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Appends the given method definition to this method registry, i.e.
|
MethodRegistry |
MethodRegistry.Default.append(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer) |
MethodRegistry |
MethodRegistry.prepend(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Prepends the given method definition to this method registry, i.e.
|
MethodRegistry |
MethodRegistry.Default.prepend(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer) |
Constructor and Description |
---|
Entry(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new entry.
|
Copyright © 2014–2015. All rights reserved.