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.
|
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.instrumentation |
The instrumentation package contains any logic for intercepting method calls.
|
net.bytebuddy.instrumentation.method |
This package contains types and implementations for describing a Java byte code method which can be any byte code
container, i.e.
|
net.bytebuddy.instrumentation.method.matcher |
This package contains types and classes that serve as predicates for
determining if a given
MethodDescription matches a certain criteria. |
Modifier and Type | Field and Description |
---|---|
protected MethodMatcher |
ByteBuddy.ignoredMethods
A matcher for identifying methods that should never be intercepted.
|
protected MethodMatcher |
ByteBuddy.MethodAnnotationTarget.methodMatcher
The method matcher representing the current method selection.
|
protected MethodMatcher |
ByteBuddy.OptionalMethodInterception.methodMatcher
The method matcher that defines the selected that is represented by this instance.
|
protected MethodMatcher |
ByteBuddy.MatchedMethodInterception.methodMatcher
A method matcher that represents the current method selection.
|
Modifier and Type | Method and Description |
---|---|
MethodMatcher |
ByteBuddy.getIgnoredMethods()
Returns the matcher for the ignored methods for the current configuration.
|
MethodMatcher |
ByteBuddy.MethodAnnotationTarget.getIgnoredMethods() |
Modifier and Type | Method and Description |
---|---|
ByteBuddy.MatchedMethodInterception |
ByteBuddy.constructor(MethodMatcher methodMatcher)
Intercepts a given constructor selection
|
ByteBuddy.MatchedMethodInterception |
ByteBuddy.invokable(MethodMatcher methodMatcher)
Intercepts a given selection of byte code methods that can be a method or a constructor.
|
ByteBuddy.MatchedMethodInterception |
ByteBuddy.MethodAnnotationTarget.invokable(MethodMatcher methodMatcher) |
ByteBuddy.MatchedMethodInterception |
ByteBuddy.method(MethodMatcher methodMatcher)
Intercepts a given method selection
|
ByteBuddy |
ByteBuddy.withIgnoredMethods(MethodMatcher ignoredMethods)
Defines a new method matcher for methods that are ignored by any dynamic type that is created by this
configuration which will replace the current configuration.
|
ByteBuddy |
ByteBuddy.MethodAnnotationTarget.withIgnoredMethods(MethodMatcher ignoredMethods) |
Constructor and Description |
---|
ByteBuddy(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
List<TypeDescription> interfaceTypes,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
ByteBuddy.Definable<TypeAttributeAppender> typeAttributeAppender,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)
Defines a new
ByteBuddy configuration. |
MatchedMethodInterception(MethodMatcher methodMatcher)
Creates a new matched method interception.
|
MethodAnnotationTarget(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
List<TypeDescription> interfaceTypes,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
ByteBuddy.Definable<TypeAttributeAppender> typeAttributeAppender,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
MethodMatcher methodMatcher,
Instrumentation instrumentation,
MethodAttributeAppender.Factory attributeAppenderFactory)
Creates a new method annotation target.
|
OptionalMethodInterception(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
List<TypeDescription> interfaceTypes,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
ByteBuddy.Definable<TypeAttributeAppender> typeAttributeAppender,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
MethodMatcher methodMatcher)
Creates a new optional method interception.
|
Modifier and Type | Method and Description |
---|---|
MethodMatcher |
DynamicType.Builder.AbstractBase.MethodToken.manifest(TypeDescription instrumentedType) |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MatchedMethodInterception<T> |
DynamicType.Builder.constructor(MethodMatcher methodMatcher)
Selects a set of constructors of this type for instrumentation.
|
DynamicType.Builder.MatchedMethodInterception<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.constructor(MethodMatcher methodMatcher) |
DynamicType.Builder<T> |
DynamicType.Builder.ignoreMethods(MethodMatcher ignoredMethods)
Defines a matcher for methods that will be ignored for any interception attempt.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.ignoreMethods(MethodMatcher ignoredMethods) |
DynamicType.Builder.MatchedMethodInterception<T> |
DynamicType.Builder.invokable(MethodMatcher methodMatcher)
Selects a set of byte code methods of this type for instrumentation.
|
DynamicType.Builder.MatchedMethodInterception<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.invokable(MethodMatcher methodMatcher) |
DynamicType.Builder.MatchedMethodInterception<T> |
DynamicType.Builder.method(MethodMatcher methodMatcher)
Selects a set of methods of this type for instrumentation.
|
DynamicType.Builder.MatchedMethodInterception<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.method(MethodMatcher methodMatcher) |
Modifier and Type | Method and Description |
---|---|
MethodMatcher |
MethodRegistry.LatentMethodMatcher.manifest(TypeDescription typeDescription)
Manifests a latent method matcher.
|
MethodMatcher |
MethodRegistry.LatentMethodMatcher.Simple.manifest(TypeDescription instrumentedType) |
Constructor and Description |
---|
Simple(MethodMatcher methodMatcher)
Creates a new wrapper.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MatchedMethodInterception<T> |
SubclassDynamicTypeBuilder.constructor(MethodMatcher methodMatcher) |
DynamicType.Builder<T> |
SubclassDynamicTypeBuilder.ignoreMethods(MethodMatcher ignoredMethods) |
DynamicType.Builder.MatchedMethodInterception<T> |
SubclassDynamicTypeBuilder.invokable(MethodMatcher methodMatcher) |
DynamicType.Builder.MatchedMethodInterception<T> |
SubclassDynamicTypeBuilder.method(MethodMatcher methodMatcher) |
Constructor and Description |
---|
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
TypeDescription superType,
List<? extends TypeDescription> interfaceTypes,
int modifiers,
TypeAttributeAppender attributeAppender,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
ConstructorStrategy constructorStrategy)
Creates a new immutable type builder for a subclassing a loaded class.
|
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
TypeDescription superType,
List<TypeDescription> interfaceTypes,
int modifiers,
TypeAttributeAppender attributeAppender,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
List<DynamicType.Builder.AbstractBase.FieldToken> fieldTokens,
List<DynamicType.Builder.AbstractBase.MethodToken> methodTokens)
Creates a new immutable type builder for a subclassing a loaded class.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegation |
MethodDelegation.filter(MethodMatcher methodMatcher)
Applies a filter to target methods that are eligible for delegation.
|
Modifier and Type | Method and Description |
---|---|
MethodList |
MethodList.filter(MethodMatcher methodMatcher)
Returns a new list that only includes the methods that are matched by the given method matcher.
|
MethodList |
MethodList.ForLoadedType.filter(MethodMatcher methodMatcher) |
MethodList |
MethodList.Explicit.filter(MethodMatcher methodMatcher) |
MethodList |
MethodList.Empty.filter(MethodMatcher methodMatcher) |
Modifier and Type | Interface and Description |
---|---|
interface |
JunctionMethodMatcher
A
MethodMatcher that allows to compose
a method matcher with another one. |
Modifier and Type | Class and Description |
---|---|
static class |
JunctionMethodMatcher.AbstractBase
An abstract base implementation of a junction method matcher.
|
static class |
JunctionMethodMatcher.Conjunction
A conjunction implementation of a method matcher that returns
true if both method matchers match
a given method. |
static class |
JunctionMethodMatcher.Disjunction
A disjunction implementation of a method matcher that returns
true if either of two method matchers
matches a given method. |
Modifier and Type | Method and Description |
---|---|
JunctionMethodMatcher |
JunctionMethodMatcher.and(MethodMatcher other)
Creates a new method matcher that returns
true if both this method matcher and the given
method matcher match a given method description. |
JunctionMethodMatcher |
JunctionMethodMatcher.AbstractBase.and(MethodMatcher other) |
static JunctionMethodMatcher |
MethodMatchers.not(MethodMatcher methodMatcher)
Inverts another method matcher.
|
JunctionMethodMatcher |
JunctionMethodMatcher.or(MethodMatcher other)
Creates a new method matcher that returns
true if either this method matcher or the given
method matcher match a given method description. |
JunctionMethodMatcher |
JunctionMethodMatcher.AbstractBase.or(MethodMatcher other) |
Constructor and Description |
---|
Conjunction(MethodMatcher left,
MethodMatcher right)
Creates a new conjunction method matcher.
|
Disjunction(MethodMatcher left,
MethodMatcher right)
Creates a new disjunction method matcher.
|
Copyright © 2014. All rights reserved.