Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.build |
A package for types that allow for applying Byte Buddy transformation during a build process.
|
net.bytebuddy.description.field |
Contains descriptions of Java fields.
|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
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.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.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.implementation.bytecode.constant |
StackManipulation s in this package are responsible for
creating compile-time constants and pushing them onto the operand stack. |
net.bytebuddy.implementation.bytecode.member |
StackManipulation s of this package are responsible for
accessing type or method members, i.e. |
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. |
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
Modifier and Type | Method and Description |
---|---|
protected static ByteCodeAppender |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.of(MethodDescription targetMethod,
JavaConstant.MethodType specializedLambdaMethod,
List<FieldDescription.InDefinedShape> declaredFields,
JavaConstant.MethodHandle.HandleType handleType,
TypeDescription targetType)
Resolves an appropriate appender for this lambda expression.
|
Constructor and Description |
---|
Appender(List<FieldDescription.InDefinedShape> declaredFields)
Creates a new appender.
|
Appender(MethodDescription targetMethod,
JavaConstant.MethodType specializedLambdaMethod,
List<FieldDescription.InDefinedShape> declaredFields,
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.Dispatcher dispatcher)
Creates an appender of a lambda expression's functional method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AsmVisitorWrapper.ForDeclaredFields.Entry.matches(FieldDescription.InDefinedShape target)
Matches a target against this element matcher.
|
protected abstract JavaConstant.MethodHandle |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access.resolve(FieldDescription.InDefinedShape fieldDescription)
Resolves a handle for the represented field access.
|
protected abstract JavaConstant.MethodHandle |
Advice.OffsetMapping.ForFieldHandle.Access.resolve(FieldDescription.InDefinedShape fieldDescription)
Returns the appropriate method handle.
|
FieldVisitor |
MemberAttributeExtension.ForField.wrap(TypeDescription instrumentedType,
FieldDescription.InDefinedShape fieldDescription,
FieldVisitor fieldVisitor)
Wraps a field visitor.
|
FieldVisitor |
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper.wrap(TypeDescription instrumentedType,
FieldDescription.InDefinedShape fieldDescription,
FieldVisitor fieldVisitor)
Wraps a field visitor.
|
FieldVisitor |
AsmVisitorWrapper.ForDeclaredFields.Entry.wrap(TypeDescription instrumentedType,
FieldDescription.InDefinedShape fieldDescription,
FieldVisitor fieldVisitor)
Wraps a field visitor.
|
Modifier and Type | Method and Description |
---|---|
AsmVisitorWrapper.ForDeclaredFields |
AsmVisitorWrapper.ForDeclaredFields.field(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper... fieldVisitorWrapper)
Defines a new field visitor wrapper to be applied if the given field matcher is matched.
|
AsmVisitorWrapper.ForDeclaredFields |
AsmVisitorWrapper.ForDeclaredFields.field(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
List<? extends AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper> fieldVisitorWrappers)
Defines a new field visitor wrapper to be applied if the given field matcher is matched.
|
AsmVisitorWrapper |
MemberAttributeExtension.ForField.on(ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Applies this attribute extension on any field that matches the supplied matcher.
|
MemberRemoval |
MemberRemoval.stripFields(ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Specifies that any field that matches the specified matcher should be removed.
|
ModifierAdjustment |
ModifierAdjustment.withFieldModifiers(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
List<? extends ModifierContributor.ForField> modifierContributors)
Adjusts a field's modifiers if it fulfills the supplied matcher.
|
ModifierAdjustment |
ModifierAdjustment.withFieldModifiers(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
ModifierContributor.ForField... modifierContributor)
Adjusts a field's modifiers if it fulfills the supplied matcher.
|
ClassVisitor |
TypeReferenceAdjustment.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 |
TypeConstantAdjustment.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 . |
ModifierAdjustment.ModifierAdjustingClassVisitor |
ModifierAdjustment.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 |
MemberRemoval.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.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)
Applies a
ClassVisitorWrapper to the creation of a DynamicType . |
ClassVisitor |
AsmVisitorWrapper.ForDeclaredFields.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.ForDeclaredMethods.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.Compound.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 . |
Modifier and Type | Method and Description |
---|---|
int |
HashCodeAndEqualsPlugin.AnnotationOrderComparator.compare(FieldDescription.InDefinedShape left,
FieldDescription.InDefinedShape right) |
Modifier and Type | Method and Description |
---|---|
ClassVisitor |
RenamingPlugin.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 . |
Modifier and Type | Class and Description |
---|---|
static class |
FieldDescription.ForLoadedField
An implementation of a field description for a loaded field.
|
static class |
FieldDescription.InDefinedShape.AbstractBase
An abstract base implementation of a field description in its defined shape.
|
static class |
FieldDescription.Latent
A latent field description describes a field that is not attached to a declaring
TypeDescription . |
Modifier and Type | Method and Description |
---|---|
FieldDescription.InDefinedShape |
FieldDescription.InDefinedShape.AbstractBase.asDefined()
Returns this type dependant in its defined shape, i.e.
|
FieldDescription.InDefinedShape |
FieldDescription.TypeSubstituting.asDefined()
Returns this type dependant in its defined shape, i.e.
|
FieldDescription.InDefinedShape |
FieldList.ForLoadedFields.get(int index) |
FieldDescription.InDefinedShape |
FieldList.ForTokens.get(int index) |
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()
Returns this list of these field descriptions resolved to their defined shape.
|
FieldList<FieldDescription.InDefinedShape> |
FieldList.Empty.asDefined()
Returns this list of these field descriptions resolved to their defined shape.
|
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.ForLoadedType.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.ArrayProjection.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.Latent.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.ForPackageDescription.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
TypeDescription.SuperTypeLoading.getDeclaredFields()
Returns the fields that this type declares.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.InDefinedShape |
Transformer.ForField.TransformedField.asDefined()
Returns this type dependant in its defined shape, i.e.
|
Constructor and Description |
---|
TransformedField(TypeDescription instrumentedType,
TypeDefinition declaringType,
FieldDescription.Token token,
FieldDescription.InDefinedShape fieldDescription)
Creates a new transformed field.
|
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 |
---|---|
FieldDescription.InDefinedShape |
TypeWriter.Default.ForInlining.WithDecorationOnly.LazyFieldList.get(int index) |
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
InstrumentedType.Default.getDeclaredFields()
Returns the fields that this type declares.
|
FieldList<FieldDescription.InDefinedShape> |
InstrumentedType.Frozen.getDeclaredFields()
Returns the fields that this type declares.
|
Constructor and Description |
---|
Default(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.RecordComponentPool recordComponentPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool)
Creates a new default type writer.
|
ForCreation(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
TypeWriter.RecordComponentPool recordComponentPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
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,
TypeWriter.RecordComponentPool recordComponentPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool,
TypeDescription originalType,
ClassFileLocator classFileLocator)
Creates a new inlining type writer.
|
WithFullProcessing(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.RecordComponentPool recordComponentPool,
List<? extends DynamicType> auxiliaryTypes,
FieldList<FieldDescription.InDefinedShape> fields,
MethodList<?> methods,
MethodList<?> instrumentedMethods,
RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
ClassWriterStrategy classWriterStrategy,
TypePool typePool,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodRegistry.Prepared methodRegistry,
Implementation.Target.Factory implementationTargetFactory,
MethodRebaseResolver methodRebaseResolver)
Creates a new inlining type writer that fully reprocesses a type.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
Implementation.Context.Default.CacheValueField
A description of a field that stores a cached value.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.InDefinedShape |
Implementation.Context.cache(StackManipulation fieldValue,
TypeDescription fieldType)
Caches a single value by storing it in form of a
private , final and static field. |
FieldDescription.InDefinedShape |
Implementation.Context.Disabled.cache(StackManipulation fieldValue,
TypeDescription fieldType)
Caches a single value by storing it in form of a
private , final and static field. |
FieldDescription.InDefinedShape |
Implementation.Context.Default.cache(StackManipulation fieldValue,
TypeDescription fieldType)
Caches a single value by storing it in form of a
private , final and static field. |
protected FieldDescription.InDefinedShape |
FieldAccessor.ForSetter.OfReferenceValue.initialize(TypeDescription instrumentedType)
Initializes a value to be used during method instrumentation.
|
Modifier and Type | Method and Description |
---|---|
int |
EqualsMethod.NaturalOrderComparator.compare(FieldDescription.InDefinedShape left,
FieldDescription.InDefinedShape right) |
int |
EqualsMethod.TypePropertyComparator.compare(FieldDescription.InDefinedShape left,
FieldDescription.InDefinedShape right) |
int |
EqualsMethod.CompoundComparator.compare(FieldDescription.InDefinedShape left,
FieldDescription.InDefinedShape right) |
protected StackManipulation |
FieldAccessor.ForSetter.OfReferenceValue.resolve(FieldDescription.InDefinedShape target,
FieldDescription fieldDescription,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves the stack manipulation to load the value being set.
|
Modifier and Type | Method and Description |
---|---|
EqualsMethod |
EqualsMethod.withFieldOrder(Comparator<? super FieldDescription.InDefinedShape> comparator)
Applies the supplied comparator to determine an order for fields for being compared.
|
ToStringMethod |
ToStringMethod.withIgnoredFields(ElementMatcher<? super FieldDescription.InDefinedShape> ignored)
Returns a new version of this toString method implementation that ignores the specified fields additionally to any
previously specified fields.
|
HashCodeMethod |
HashCodeMethod.withIgnoredFields(ElementMatcher<? super FieldDescription.InDefinedShape> ignored)
Returns a new version of this hash code method implementation that ignores the specified fields additionally to any
previously specified fields.
|
EqualsMethod |
EqualsMethod.withIgnoredFields(ElementMatcher<? super FieldDescription.InDefinedShape> ignored)
Returns a new version of this equals method implementation that ignores the specified fields additionally to any
previously specified fields.
|
HashCodeMethod |
HashCodeMethod.withNonNullableFields(ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Returns a new version of this hash code method implementation that does not apply a
null value check for the specified fields
if they have a reference type additionally to any previously specified fields. |
EqualsMethod |
EqualsMethod.withNonNullableFields(ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Returns a new version of this equals method implementation that does not apply a
null value check for the specified fields
if they have a reference type additionally to any previously specified fields. |
Constructor and Description |
---|
ForValue(FieldDescription.InDefinedShape fieldDescription)
Creates a new target handler for a field value.
|
Constructor and Description |
---|
Appender(StackManipulation initialValue,
int multiplier,
List<FieldDescription.InDefinedShape> fieldDescriptions,
ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Creates a new appender for implementing a hash code method.
|
Appender(StackManipulation initialValue,
int multiplier,
List<FieldDescription.InDefinedShape> fieldDescriptions,
ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Creates a new appender for implementing a hash code method.
|
Appender(String prefix,
String start,
String end,
String separator,
String definer,
List<? extends FieldDescription.InDefinedShape> fieldDescriptions)
Creates a new appender.
|
Appender(TypeDescription instrumentedType,
StackManipulation baseline,
List<FieldDescription.InDefinedShape> fieldDescriptions,
ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Creates a new appender.
|
Appender(TypeDescription instrumentedType,
StackManipulation baseline,
List<FieldDescription.InDefinedShape> fieldDescriptions,
ElementMatcher<? super FieldDescription.InDefinedShape> nonNullable)
Creates a new appender.
|
CompoundComparator(List<? extends Comparator<? super FieldDescription.InDefinedShape>> comparators)
Creates a compound comparator.
|
Constructor and Description |
---|
FieldConstant(FieldDescription.InDefinedShape fieldDescription)
Creates a new field constant.
|
Modifier and Type | Method and Description |
---|---|
static FieldAccess.Defined |
FieldAccess.forField(FieldDescription.InDefinedShape fieldDescription)
Creates a field access representation for a given field.
|
Constructor and Description |
---|
AccessDispatcher(FieldDescription.InDefinedShape fieldDescription)
Creates a new access dispatcher.
|
Modifier and Type | Method and Description |
---|---|
static <T extends FieldDescription> |
ElementMatchers.is(FieldDescription.InDefinedShape field)
Exactly matches a given field as a
FieldDescription in its defined shape. |
Modifier and Type | Method and Description |
---|---|
static <T extends FieldDescription> |
ElementMatchers.definedField(ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Matches a field in its defined shape.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.InDefinedShape |
TypePool.Default.LazyTypeDescription.FieldTokenList.get(int index) |
Modifier and Type | Method and Description |
---|---|
FieldList<FieldDescription.InDefinedShape> |
TypePool.Default.LazyTypeDescription.getDeclaredFields()
Returns the fields that this type declares.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
FieldDescription.InDefinedShape definingField)
Resolves the field type of the represented field.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
FieldDescription.InDefinedShape definingField)
Resolves the field type of the represented field.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
FieldDescription.InDefinedShape definingField)
Resolves the field type of the represented field.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField.Tokenized.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
FieldDescription.InDefinedShape definingField)
Resolves the field type of the represented field.
|
Modifier and Type | Method and Description |
---|---|
static JavaConstant.Dynamic |
JavaConstant.Dynamic.ofField(FieldDescription.InDefinedShape fieldDescription)
Returns a
static , final field constant. |
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofGetter(FieldDescription.InDefinedShape fieldDescription)
Returns a method handle for a setter of the given field.
|
protected static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.ofGetter(FieldDescription.InDefinedShape fieldDescription)
Extracts a handle type for a getter of the given field.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofSetter(FieldDescription.InDefinedShape fieldDescription)
Returns a method handle for a getter of the given field.
|
protected static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.ofSetter(FieldDescription.InDefinedShape fieldDescription)
Extracts a handle type for a setter of the given field.
|
static JavaConstant |
JavaConstant.Dynamic.ofVarHandle(FieldDescription.InDefinedShape fieldDescription)
Resolves a var handle constant for a field.
|
Copyright © 2014–2024. All rights reserved.