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.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<S extends MethodDescription>
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.ForLoadedMethods
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 | Field and Description |
---|---|
protected MethodList<?> |
TypeWriter.Default.instrumentedMethods
The instrumented methods relevant to this type creation.
|
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,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
List<? extends DynamicType> auxiliaryTypes,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
TypePool typePool)
Creates a new default type writer.
|
ForCreation(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
List<? extends DynamicType> auxiliaryTypes,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
TypePool typePool)
Creates a new default type writer for creating a new type that is not based on an existing class file.
|
ForInlining(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
MethodRegistry.Prepared methodRegistry,
Implementation.Target.Factory implementationTargetFactory,
List<DynamicType> explicitAuxiliaryTypes,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
TypePool typePool,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodRebaseResolver methodRebaseResolver)
Creates a new default type writer for creating a new type that is not based on an existing class file.
|
Modifier and Type | Method and Description |
---|---|
protected static ElementMatcher<MethodDescription> |
RebaseDynamicTypeBuilder.RebaseableMatcher.of(TypeDescription instrumentedType,
MethodList<?> instrumentedMethods)
Returns a matcher that filters any method that should not be rebased.
|
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>> matcher)
Creates a new matcher for a type's declared methods.
|
Modifier and Type | Class and Description |
---|---|
protected class |
TypePool.Default.LazyTypeDescription.MethodTokenList
A list of method tokens representing each entry as a method description.
|
Modifier and Type | Method and Description |
---|---|
MethodList<MethodDescription.InDefinedShape> |
TypePool.Default.LazyTypeDescription.getDeclaredMethods() |
Copyright © 2014–2016. All rights reserved.