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.description.type.generic |
Contains descriptions for generic types as defined in the Java programming language.
|
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.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.implementation.bind |
The types and classes of this package are responsible for binding a method call to calling 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.AbstractBase<S extends MethodDescription>
A base implementation of a
MethodList . |
static class |
MethodList.Empty
An implementation of an empty method list.
|
static class |
MethodList.Explicit<S extends MethodDescription>
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.
|
static class |
MethodList.ForTokens
A list of method descriptions for a list of detached tokens.
|
static class |
MethodList.TypeSubstituting
A list of method descriptions that yields
MethodDescription.TypeSubstituting . |
Modifier and Type | Method and Description |
---|---|
MethodList<MethodDescription.InDefinedShape> |
MethodList.asDefined()
Returns this list of these method descriptions resolved to their defined shape.
|
MethodList<MethodDescription.InDefinedShape> |
MethodList.AbstractBase.asDefined() |
MethodList<MethodDescription.InDefinedShape> |
MethodList.Empty.asDefined() |
protected MethodList<S> |
MethodList.AbstractBase.wrap(List<S> values) |
Modifier and Type | Method and Description |
---|---|
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.getDeclaredMethods() |
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.ForLoadedType.getDeclaredMethods() |
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.ArrayProjection.getDeclaredMethods() |
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.Latent.getDeclaredMethods() |
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.ForPackageDescription.getDeclaredMethods() |
Modifier and Type | Method and Description |
---|---|
MethodList<?> |
GenericTypeDescription.getDeclaredMethods()
Returns a list of method descriptions that are declared by this type.
|
MethodList |
GenericTypeDescription.ForNonGenericType.getDeclaredMethods() |
MethodList |
GenericTypeDescription.ForGenericArray.getDeclaredMethods() |
MethodList |
GenericTypeDescription.ForWildcardType.getDeclaredMethods() |
MethodList |
GenericTypeDescription.ForParameterizedType.getDeclaredMethods() |
MethodList |
GenericTypeDescription.ForTypeVariable.getDeclaredMethods() |
MethodList |
GenericTypeDescription.LazyProjection.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<?> |
MethodGraph.NodeList.asMethodList()
Transforms this list of nodes into a list of the node's representatives.
|
MethodList<MethodDescription.InDefinedShape> |
InstrumentedType.Default.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() |
Constructor and Description |
---|
Default(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
ClassVisitorWrapper classVisitorWrapper,
TypeAttributeAppender attributeAppender,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
MethodList<?> instrumentedMethods)
Creates a new default type writer.
|
ForCreation(TypeDescription instrumentedType,
LoadedTypeInitializer loadedTypeInitializer,
InstrumentedType.TypeInitializer typeInitializer,
List<DynamicType> explicitAuxiliaryTypes,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
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,
Implementation.Context.Factory implementationContextFactory,
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.Default.make(TypeDescription instrumentedType,
MethodList<MethodDescription.InDefinedShape> rebaseableMethods,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver.
|
protected static Implementation.Target |
RebaseImplementationTarget.of(TypeDescription instrumentedType,
MethodGraph.Linked methodGraph,
MethodList<MethodDescription.InDefinedShape> rebaseableMethods,
MethodRebaseResolver methodRebaseResolver)
Creates a new rebase implementation target.
|
Constructor and Description |
---|
Factory(MethodList<MethodDescription.InDefinedShape> rebaseableMethods,
MethodRebaseResolver methodRebaseResolver)
Creates a new factory for a rebase implementation target.
|
Modifier and Type | Method and Description |
---|---|
MethodList<?> |
MethodDelegation.MethodContainer.resolve(TypeDescription instrumentedType)
Resolves this method container to extract a list of methods to be considered for interception.
|
MethodList<?> |
MethodDelegation.MethodContainer.ForExplicitMethods.resolve(TypeDescription instrumentedType) |
MethodList<?> |
MethodDelegation.MethodContainer.ForVirtualMethods.resolve(TypeDescription instrumentedType) |
Constructor and Description |
---|
Appender(StackManipulation preparingStackAssignment,
Implementation.Target implementationTarget,
MethodList targetCandidates,
MethodDelegationBinder.Processor processor)
Creates a new appender.
|
ForExplicitMethods(MethodList<?> methodList)
Creates a new explicit method container.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.MethodBinding |
MethodDelegationBinder.Processor.process(Implementation.Target implementationTarget,
MethodDescription source,
MethodList<?> targetCandidates) |
Constructor and Description |
---|
DeclaringMethodMatcher(ElementMatcher<? super MethodList<? extends MethodDescription>> methodMatcher)
Creates a new matcher for a type's declared methods.
|
Modifier and Type | Method and Description |
---|---|
MethodList<MethodDescription.InDefinedShape> |
TypePool.LazyFacade.LazyResolution.LazyTypeDescription.getDeclaredMethods() |
MethodList<MethodDescription.InDefinedShape> |
TypePool.LazyTypeDescription.getDeclaredMethods() |
Copyright © 2014–2015. All rights reserved.