Package | Description |
---|---|
net.bytebuddy.description.method |
Contains descriptions of Java methods and constructors as well as their parameters.
|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
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.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.implementation.bind.annotation |
This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
|
net.bytebuddy.matcher |
Contains an API for matching Java byte code entities.
|
net.bytebuddy.pool |
Classes of this package allow for the creating
TypeDescription s without
loading any classes. |
Modifier and Type | Class and Description |
---|---|
static class |
MethodList.Empty
An implementation of an empty method list.
|
static class |
MethodList.Explicit
A method list that is a wrapper for a given list of method descriptions.
|
static class |
MethodList.ForLoadedType
A method list implementation that returns all loaded byte code methods (methods and constructors) that
are declared for a given type.
|
Modifier and Type | Method and Description |
---|---|
protected MethodList |
MethodList.ForLoadedType.wrap(List<MethodDescription> values) |
protected MethodList |
MethodList.Explicit.wrap(List<MethodDescription> values) |
Modifier and Type | Method and Description |
---|---|
MethodList |
TypeDescription.getDeclaredMethods()
Returns a list of methods that are declared by this type.
|
MethodList |
TypeDescription.ForLoadedType.getDeclaredMethods() |
MethodList |
TypeDescription.ArrayProjection.getDeclaredMethods() |
MethodList |
TypeDescription.Latent.getDeclaredMethods() |
Modifier and Type | Field and Description |
---|---|
protected MethodList |
TypeWriter.Default.instrumentedMethods
A list of all instrumented methods.
|
Modifier and Type | Method and Description |
---|---|
MethodList |
InstrumentedType.AbstractBase.getDeclaredMethods() |
MethodList |
MethodRegistry.Prepared.getInstrumentedMethods()
Returns a list of all methods that should be instrumented.
|
MethodList |
MethodRegistry.Compiled.getInstrumentedMethods()
Returns a list of all methods that should be instrumented.
|
MethodList |
MethodRegistry.Default.Prepared.getInstrumentedMethods() |
MethodList |
MethodRegistry.Default.Compiled.getInstrumentedMethods() |
MethodList |
MethodLookupEngine.Finding.getInvokableMethods()
Returns a list of methods that can be invoked on the analyzed type.
|
MethodList |
MethodLookupEngine.Finding.Default.getInvokableMethods() |
Modifier and Type | Method and Description |
---|---|
BridgeMethodResolver.Simple.BridgeTarget |
BridgeMethodResolver.Simple.ConflictHandler.choose(MethodDescription bridgeMethod,
MethodList targetCandidates)
Returns a target method for the given bridge method out of the given list of candidate methods.
|
BridgeMethodResolver |
BridgeMethodResolver.NoOp.make(MethodList relevant) |
BridgeMethodResolver |
BridgeMethodResolver.Factory.make(MethodList methodList)
Creates a bridge method resolver for a given list of methods.
|
BridgeMethodResolver |
BridgeMethodResolver.Simple.Factory.make(MethodList methodList) |
static BridgeMethodResolver |
BridgeMethodResolver.Simple.of(MethodList methodList,
BridgeMethodResolver.Simple.ConflictHandler conflictHandler)
Creates a new bridge method resolver for the given list of methods.
|
Constructor and Description |
---|
Default(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods)
Creates a new default type writer.
|
Default(TypeDescription lookedUpType,
MethodList invokableMethods,
Map<TypeDescription,Set<MethodDescription>> invokableDefaultMethods)
Creates a default of a
MethodLookupEngine.Finding . |
ForCreation(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods)
Creates a new type writer for creating a new type.
|
ForInlining(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList instrumentedMethods,
ClassFileLocator classFileLocator,
TypeDescription targetType,
MethodRebaseResolver methodRebaseResolver)
Creates a new type writer for inling a type into an existing type description.
|
Modifier and Type | Method and Description |
---|---|
static MethodRebaseResolver |
MethodRebaseResolver.Enabled.make(MethodList instrumentedMethods,
TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a method rebase resolver which is only capable of rebasing constructors if the instrumented methods suggest this.
|
protected static MethodRebaseResolver |
MethodRebaseResolver.Enabled.of(MethodList instrumentedMethods,
DynamicType placeholderType,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a fully enabled method rebase resolver.
|
protected static MethodRebaseResolver |
MethodRebaseResolver.MethodsOnly.of(MethodList instrumentedMethods,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver that is only capable of rebasing methods but not constructors.
|
Modifier and Type | Method and Description |
---|---|
MethodList |
ConstructorStrategy.extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.
|
Constructor and Description |
---|
MethodDelegation(MethodDelegation.ImplementationDelegate implementationDelegate,
List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
TargetMethodAnnotationDrivenBinder.DefaultsProvider defaultsProvider,
TargetMethodAnnotationDrivenBinder.TerminationHandler terminationHandler,
MethodDelegationBinder.AmbiguityResolver ambiguityResolver,
Assigner assigner,
MethodList targetMethodCandidates)
Creates a new method delegation.
|
Modifier and Type | Method and Description |
---|---|
MethodList |
Pipe.Binder.PrecomputedFinding.getInvokableMethods() |
MethodList |
Morph.Binder.PrecomputedFinding.getInvokableMethods() |
Constructor and Description |
---|
DeclaringMethodMatcher(ElementMatcher<? super MethodList> methodMatcher)
Creates a new matcher for a type's declared methods.
|
Modifier and Type | Method and Description |
---|---|
MethodList |
TypePool.LazyTypeDescription.getDeclaredMethods() |
Copyright © 2014–2015. All rights reserved.