Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.description.field |
Contains descriptions of Java fields.
|
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.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 | Method and Description |
---|---|
ClassVisitor |
TypeConstantAdjustment.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags) |
ClassVisitor |
AsmVisitorWrapper.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.NoOp.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags) |
ClassVisitor |
AsmVisitorWrapper.ForDeclaredFields.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags) |
ClassVisitor |
AsmVisitorWrapper.ForDeclaredMethods.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags) |
ClassVisitor |
AsmVisitorWrapper.Compound.wrap(TypeDescription instrumentedType,
ClassVisitor classVisitor,
Implementation.Context implementationContext,
TypePool typePool,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
int writerFlags,
int readerFlags) |
Constructor and Description |
---|
DispatchingVisitor(ClassVisitor classVisitor,
TypeDescription instrumentedType,
FieldList<FieldDescription.InDefinedShape> fields)
Creates a new dispatching visitor.
|
Modifier and Type | Class and Description |
---|---|
static class |
FieldList.AbstractBase<S extends FieldDescription>
An abstract base implementation of a
FieldList . |
static class |
FieldList.Empty<S extends FieldDescription>
An implementation of an empty field list.
|
static class |
FieldList.Explicit<S extends FieldDescription>
A wrapper implementation of a field list for a given list of field descriptions.
|
static class |
FieldList.ForLoadedFields
An implementation of a field list for an array of loaded fields.
|
static class |
FieldList.ForTokens
A list of field descriptions for a list of detached tokens.
|
static class |
FieldList.TypeSubstituting
A list of field descriptions that yields
FieldDescription.TypeSubstituting . |
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
FieldList.asDefined()
Returns this list of these field descriptions resolved to their defined shape.
|
FieldList<FieldDescription.InDefinedShape> |
FieldList.AbstractBase.asDefined() |
FieldList<FieldDescription.InDefinedShape> |
FieldList.Empty.asDefined() |
protected FieldList<S> |
FieldList.AbstractBase.wrap(List<S> values) |
Modifier and Type | Field and Description |
---|---|
protected FieldList<FieldDescription.InDefinedShape> |
TypeWriter.Default.fields
The instrumented type's declared fields.
|
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
InstrumentedType.Default.getDeclaredFields() |
protected abstract FieldList<?> |
FieldLocator.AbstractBase.locate(ElementMatcher<? super FieldDescription> matcher)
Locates fields that match the given matcher.
|
protected FieldList<?> |
FieldLocator.ForExactType.locate(ElementMatcher<? super FieldDescription> matcher) |
protected FieldList<?> |
FieldLocator.ForClassHierarchy.locate(ElementMatcher<? super FieldDescription> matcher) |
protected FieldList<?> |
FieldLocator.ForTopLevelType.locate(ElementMatcher<? super FieldDescription> matcher) |
Constructor and Description |
---|
Default(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
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,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
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,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
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.
|
Constructor and Description |
---|
DeclaringFieldMatcher(ElementMatcher<? super FieldList<? extends FieldDescription>> matcher)
Creates a new matcher for a type's declared fields.
|
Modifier and Type | Class and Description |
---|---|
protected class |
TypePool.Default.LazyTypeDescription.FieldTokenList
A list of field tokens representing each entry as a field description.
|
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
TypePool.Default.LazyTypeDescription.getDeclaredFields() |
Copyright © 2014–2017. All rights reserved.