Package | Description |
---|---|
net.bytebuddy.description.modifier |
The modifier package contains high-level and type-safe descriptions of Java modifiers.
|
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.implementation |
The implementation package contains any logic for intercepting method calls.
|
Modifier and Type | Class and Description |
---|---|
class |
EnumerationState
Determines if a type describes an enumeration.
|
class |
FieldManifestation
Describes the manifestation of a class's field, i.e. if a field is final, volatile or neither.
|
class |
Ownership
Determines the ownership of a field or method, i.e. if a member is defined in as
static
and belongs to a class or in contrast to an instance. |
class |
SyntheticState
Defines if a type or member is supposed to be marked as synthetic.
|
class |
Visibility
Describes a type's, field's or a method's visibility.
|
Modifier and Type | Method and Description |
---|---|
static ModifierContributor.Resolver<ModifierContributor.ForField> |
ModifierContributor.Resolver.of(ModifierContributor.ForField... modifierContributor)
Creates a new resolver for modifier contributors to a field.
|
Modifier and Type | Method and Description |
---|---|
static ModifierContributor.Resolver<ModifierContributor.ForField> |
ModifierContributor.Resolver.of(ModifierContributor.ForField... modifierContributor)
Creates a new resolver for modifier contributors to a field.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.FieldDefinition.Optional.Valuable<T> |
DynamicType.Builder.defineField(String name,
TypeDefinition type,
ModifierContributor.ForField... modifierContributor)
Defines the specified field as a field of the built dynamic type.
|
DynamicType.Builder.FieldDefinition.Optional.Valuable<S> |
DynamicType.Builder.AbstractBase.defineField(String name,
TypeDefinition type,
ModifierContributor.ForField... modifierContributor) |
DynamicType.Builder.FieldDefinition.Optional.Valuable<T> |
DynamicType.Builder.defineField(String name,
Type type,
ModifierContributor.ForField... modifierContributor)
Defines the specified field as a field of the built dynamic type.
|
DynamicType.Builder.FieldDefinition.Optional.Valuable<S> |
DynamicType.Builder.AbstractBase.defineField(String name,
Type type,
ModifierContributor.ForField... modifierContributor) |
static FieldTransformer |
FieldTransformer.Simple.withModifiers(ModifierContributor.ForField... modifierContributor)
Creates a field transformer that patches the transformed field by the givien modifier contributors.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.FieldDefinition.Optional.Valuable<T> |
DynamicType.Builder.defineField(String name,
Type type,
Collection<? extends ModifierContributor.ForField> modifierContributors)
Defines the specified field as a field of the built dynamic type.
|
DynamicType.Builder.FieldDefinition.Optional.Valuable<S> |
DynamicType.Builder.AbstractBase.defineField(String name,
Type type,
Collection<? extends ModifierContributor.ForField> modifierContributors) |
DynamicType.Builder.FieldDefinition.Optional.Valuable<T> |
DynamicType.Builder.defineField(String name,
TypeDefinition type,
Collection<? extends ModifierContributor.ForField> modifierContributors)
Defines the specified field as a field of the built dynamic type.
|
DynamicType.Builder.FieldDefinition.Optional.Valuable<S> |
DynamicType.Builder.AbstractBase.defineField(String name,
TypeDefinition type,
Collection<? extends ModifierContributor.ForField> modifierContributors) |
Constructor and Description |
---|
ForModifierTransformation(List<? extends ModifierContributor.ForField> modifierContributors)
Creates a new field token modifier for transforming a field's modifiers.
|
Modifier and Type | Method and Description |
---|---|
FieldAccessor.AssignerConfigurable |
FieldAccessor.FieldDefinable.defineAs(TypeDefinition typeDefinition,
ModifierContributor.ForField... modifier)
Defines a field with the given name in the instrumented type.
|
FieldAccessor.AssignerConfigurable |
FieldAccessor.ForNamedField.defineAs(TypeDefinition typeDefinition,
ModifierContributor.ForField... modifier) |
FieldAccessor.AssignerConfigurable |
FieldAccessor.FieldDefinable.defineAs(Type type,
ModifierContributor.ForField... modifier)
Defines a field with the given name in the instrumented type.
|
FieldAccessor.AssignerConfigurable |
FieldAccessor.ForNamedField.defineAs(Type type,
ModifierContributor.ForField... modifier) |
static FieldAccessor.ForNamedField.PreparationHandler |
FieldAccessor.ForNamedField.PreparationHandler.FieldDefiner.of(String name,
TypeDescription.Generic typeDescription,
ModifierContributor.ForField... contributor)
Creates a new preparation handler that defines a given field.
|
Copyright © 2014–2016. All rights reserved.