Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bind(Class<T> type,
ConstantValue constant)
Binds the supplied annotation to the given Java constant.
|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
ConstantValue constant)
Binds the supplied annotation to the given Java constant.
|
Constructor and Description |
---|
Factory(Class<T> annotationType,
ConstantValue value)
Creates a factory for a given constant value.
|
Factory(Class<T> annotationType,
ConstantValue constant)
Creates a new factory for binding a Java constant.
|
Modifier and Type | Method and Description |
---|---|
Implementation.Composable |
FieldAccessor.PropertyConfigurable.setsValue(ConstantValue constant)
Defines a setter of a given constant value for the described field.
|
Implementation.Composable |
FieldAccessor.ForImplicitProperty.setsValue(ConstantValue constant)
Defines a setter of a given constant value for the described field.
|
static FixedValue.AssignerConfigurable |
FixedValue.value(ConstantValue constant)
Returns the loaded version of the given
JavaConstant . |
MethodCall |
MethodCall.with(ConstantValue... constant)
Defines the given Java instances to be provided as arguments to the invoked method where the given
instances are stored in the generated class's constant pool.
|
InvokeDynamic |
InvokeDynamic.withInstance(ConstantValue... constant)
Hands the provided Java instance to the dynamically bound method.
|
Constructor and Description |
---|
ForJavaConstant(ConstantValue constant)
Creates a new argument provider for the given Java instance.
|
Modifier and Type | Interface and Description |
---|---|
interface |
JavaConstant
Represents a constant-pool constant within a Java class file.
|
Modifier and Type | Class and Description |
---|---|
static class |
ConstantValue.Simple
A simple representation of a constant value.
|
static class |
JavaConstant.Dynamic
Represents a dynamically resolved constant pool entry of a class file.
|
static class |
JavaConstant.MethodHandle
Represents a
java.lang.invoke.MethodHandle object. |
static class |
JavaConstant.MethodType
Represents a
java.lang.invoke.MethodType object. |
static class |
JavaConstant.Simple<T>
|
protected static class |
JavaConstant.Simple.OfTrivialValue<S>
Represents a trivial constant value that represents itself.
|
protected static class |
JavaConstant.Simple.OfTrivialValue.ForDouble |
protected static class |
JavaConstant.Simple.OfTrivialValue.ForFloat |
protected static class |
JavaConstant.Simple.OfTrivialValue.ForInteger |
protected static class |
JavaConstant.Simple.OfTrivialValue.ForLong |
protected static class |
JavaConstant.Simple.OfTrivialValue.ForString |
protected static class |
JavaConstant.Simple.OfTypeDescription
Represents a type constant.
|
Modifier and Type | Method and Description |
---|---|
static ConstantValue |
ConstantValue.Simple.wrap(Object value)
Returns a constant value for the supplied constant value.
|
static ConstantValue |
ConstantValue.Simple.wrapOrNull(Object value)
Returns a constant value for the supplied constant value.
|
Copyright © 2014–2024. All rights reserved.