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.inline |
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type. |
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.matcher |
Contains an API for matching Java byte code entities.
|
Modifier and Type | Field and Description |
---|---|
protected LatentMethodMatcher |
ByteBuddy.MethodAnnotationTarget.methodMatcher
The method matcher representing the current method selection.
|
protected LatentMethodMatcher |
ByteBuddy.OptionalMethodInterception.methodMatcher
The method matcher that defines the selected that is represented by this instance.
|
protected LatentMethodMatcher |
ByteBuddy.MatchedMethodInterception.methodMatcher
A method matcher that represents the current method selection.
|
Modifier and Type | Method and Description |
---|---|
ByteBuddy.MatchedMethodInterception |
ByteBuddy.invokable(LatentMethodMatcher methodMatcher)
Intercepts a given selection of byte code level methods, i.e.
|
ByteBuddy.MatchedMethodInterception |
ByteBuddy.Proxy.invokable(LatentMethodMatcher methodMatcher) |
Constructor and Description |
---|
MatchedMethodInterception(LatentMethodMatcher methodMatcher)
Creates a new matched method interception.
|
MethodAnnotationTarget(ClassFileVersion classFileVersion,
NamingStrategy.Unbound namingStrategy,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
List<TypeDescription> interfaceTypes,
ElementMatcher<? super MethodDescription> ignoredMethods,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
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.
|
OptionalMethodInterception(ClassFileVersion classFileVersion,
NamingStrategy.Unbound namingStrategy,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
List<TypeDescription> interfaceTypes,
ElementMatcher<? super MethodDescription> ignoredMethods,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
TypeAttributeAppender typeAttributeAppender,
MethodGraph.Compiler methodGraphCompiler,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
LatentMethodMatcher methodMatcher)
Creates a new optional method interception.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MatchedMethodInterception<T> |
DynamicType.Builder.invokable(LatentMethodMatcher methodMatcher)
Selects a set of byte code level methods, i.e.
|
DynamicType.Builder.MatchedMethodInterception<S> |
DynamicType.Builder.AbstractBase.invokable(LatentMethodMatcher methodMatcher) |
DynamicType.Builder.MatchedMethodInterception<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.invokable(LatentMethodMatcher methodMatcher) |
Constructor and Description |
---|
DefaultMatchedMethodInterception(LatentMethodMatcher methodMatcher,
List<MethodDescription.Token> methodTokens)
Creates a new default matched method interception.
|
DefaultMethodAnnotationTarget(LatentMethodMatcher methodMatcher,
List<MethodDescription.Token> methodTokens,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new default method annotation target.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodRegistry.Default.Entry
An entry of a default method registry.
|
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.Prepared |
MethodRegistry.prepare(InstrumentedType instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
LatentMethodMatcher methodFilter)
Prepares this method registry.
|
MethodRegistry.Prepared |
MethodRegistry.Default.prepare(InstrumentedType instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
LatentMethodMatcher methodFilter) |
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.
|
Modifier and Type | Class and Description |
---|---|
class |
InliningImplementationMatcher
A latent method matcher that identifies methods to instrument when redefining or rebasing a type.
|
Modifier and Type | Method and Description |
---|---|
protected static LatentMethodMatcher |
InliningImplementationMatcher.of(ElementMatcher<? super MethodDescription> ignoredMethods,
TypeDescription targetType)
Creates a matcher where only overridable or declared methods are matched unless those are ignored.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
SubclassDynamicTypeBuilder.InstrumentableMatcher
A matcher that locates all methods that are overridable and not ignored or that are directly defined on the instrumented type.
|
Modifier and Type | Class and Description |
---|---|
static class |
LatentMethodMatcher.ForToken
A latent method matcher that matches a token that is attached to the instrumented type before matching.
|
static class |
LatentMethodMatcher.Resolved
A latent method matcher that is already resolved.
|
Copyright © 2014–2015. All rights reserved.