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.
|
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 Transformer<FieldDescription> |
Transformer.ForField.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 |
---|
FieldModifierTransformer(List<? extends ModifierContributor.ForField> modifierContributors)
Creates a new field token modifier for transforming a field's modifiers.
|
Copyright © 2014–2017. All rights reserved.