Uses of Interface
net.bytebuddy.description.type.TypeDefinition
-
Packages that use TypeDefinition Package Description net.bytebuddy Byte Buddy is a library for creating Java classes at runtime of a Java program.net.bytebuddy.asm The ASM package contains classes that are meant for direct interaction with the ASM API.net.bytebuddy.description Classes of this package allow the representation of Java classes, their member and their meta data.net.bytebuddy.description.annotation Contains descriptions of annotations and annotation values.net.bytebuddy.description.method Contains descriptions of Java methods and constructors as well as their parameters.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.dynamic.scaffold.inline All classes and types in this package are related to creating aDynamicTypeby enhancing a given type.net.bytebuddy.dynamic.scaffold.subclass All classes and types in this package are related to creating aDynamicTypeby creating a subclass of a given type.net.bytebuddy.implementation The implementation package contains any logic for intercepting method calls.net.bytebuddy.implementation.auxiliary Auxiliary types describe helper types that aid as a supplementary to a givenInstrumentedType.net.bytebuddy.implementation.bytecode Types and classes in this package are responsible for creating Java byte code for a given byte code target which is represented by aMethodDescription.net.bytebuddy.implementation.bytecode.assign AnAssigneris responsible for transforming a givenTypeDescriptioninto another one.net.bytebuddy.implementation.bytecode.assign.primitive Assignerimplementations of this package are capable of handling primitive types or thevoidtype.net.bytebuddy.implementation.bytecode.collection This package is dedicated to creatingStackManipulations that create collections or arrays from a given number of values.net.bytebuddy.implementation.bytecode.constant StackManipulations in this package are responsible for creating compile-time constants and pushing them onto the operand stack.net.bytebuddy.implementation.bytecode.member StackManipulations 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 creatingTypeDescriptions without loading any classes.net.bytebuddy.utility This package contains utility classes for common use within any Byte Buddy logic. -
-
Uses of TypeDefinition in net.bytebuddy
Methods in net.bytebuddy with parameters of type TypeDefinition Modifier and Type Method Description DynamicType.Builder<?>ByteBuddy. makeInterface(TypeDefinition... interfaceType)Creates a new interface type that extends the provided interface.DynamicType.Builder<?>ByteBuddy. subclass(TypeDefinition superType)Creates a new builder for subclassing the provided type.DynamicType.Builder<?>ByteBuddy. subclass(TypeDefinition superType, ConstructorStrategy constructorStrategy)Creates a new builder for subclassing the provided type.Method parameters in net.bytebuddy with type arguments of type TypeDefinition Modifier and Type Method Description DynamicType.Builder<?>ByteBuddy. makeInterface(java.util.Collection<? extends TypeDefinition> interfaceTypes)Creates a new interface type that extends the provided interface. -
Uses of TypeDefinition in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as TypeDefinition Modifier and Type Field Description private TypeDefinitionAdvice.ArgumentHandler.ForAdvice.Default.ForMethodExit. enterTypeThe enter type orvoidif no enter type is defined.protected TypeDefinitionAdvice.ArgumentHandler.ForInstrumentedMethod.Default. enterTypeThe enter type orvoidif no enter type is defined.private TypeDefinitionAdvice.OffsetMapping.ForEnterValue.Factory. enterTypeThe supplied type of the enter advice.protected TypeDefinitionAdvice.ArgumentHandler.ForAdvice.Default. exitTypeThe enter type orvoidif no enter type is defined.protected TypeDefinitionAdvice.ArgumentHandler.ForInstrumentedMethod.Default. exitTypeThe exit type orvoidif no exit type is defined.private TypeDefinitionAdvice.OffsetMapping.ForExitValue.Factory. exitTypeThe supplied type of the exit advice.private TypeDefinitionAdvice.OffsetMapping.ForUnusedValue. targetThe unused type.protected TypeDefinitionAdvice.OffsetMapping.Target.ForDefaultValue. typeDefinitionThe represented type.protected TypeDefinitionAdvice.OffsetMapping.Target.ForVariable. typeDefinitionThe represented type.Fields in net.bytebuddy.asm with type parameters of type TypeDefinition Modifier and Type Field Description protected java.util.TreeMap<java.lang.String,TypeDefinition>Advice.ArgumentHandler.ForAdvice.Default. namedTypesA mapping of all available local variables by their name to their type.protected java.util.TreeMap<java.lang.String,TypeDefinition>Advice.ArgumentHandler.ForInstrumentedMethod.Default. namedTypesA mapping of all available local variables by their name to their type.private java.util.Map<java.lang.String,TypeDefinition>Advice.Dispatcher.Inlining. namedTypesA mapping of all available local variables by their name to their type.private java.util.Map<java.lang.String,TypeDefinition>Advice.Dispatcher.Inlining.Resolved.ForMethodEnter. namedTypesA mapping of all available local variables by their name to their type.private java.util.Map<java.lang.String,TypeDefinition>Advice.OffsetMapping.ForLocalValue.Factory. namedTypesThe mapping of type names to their type that are available.Methods in net.bytebuddy.asm that return TypeDefinition Modifier and Type Method Description TypeDefinitionAdvice.Dispatcher.Delegating.Resolved.ForMethodEnter.WithDiscardedEnterType. getAdviceType()The type that is produced as a result of executing this advice method.TypeDefinitionAdvice.Dispatcher.Delegating.Resolved.ForMethodEnter.WithRetainedEnterType. getAdviceType()The type that is produced as a result of executing this advice method.TypeDefinitionAdvice.Dispatcher.Delegating.Resolved.ForMethodExit. getAdviceType()The type that is produced as a result of executing this advice method.TypeDefinitionAdvice.Dispatcher. getAdviceType()The type that is produced as a result of executing this advice method.TypeDefinitionAdvice.Dispatcher.Inlining.Resolved.ForMethodEnter.WithDiscardedEnterType. getAdviceType()The type that is produced as a result of executing this advice method.TypeDefinitionAdvice.Dispatcher.Inlining.Resolved.ForMethodEnter.WithRetainedEnterType. getAdviceType()The type that is produced as a result of executing this advice method.TypeDefinitionAdvice.Dispatcher.Inlining.Resolved.ForMethodExit. getAdviceType()The type that is produced as a result of executing this advice method.Methods in net.bytebuddy.asm that return types with arguments of type TypeDefinition Modifier and Type Method Description java.util.Map<java.lang.String,TypeDefinition>Advice.Dispatcher.Delegating. getNamedTypes()Returns the named types declared by this enter advice.java.util.Map<java.lang.String,TypeDefinition>Advice.Dispatcher.Delegating.Resolved.ForMethodEnter. getNamedTypes()Returns the named types declared by this enter advice.java.util.Map<java.lang.String,TypeDefinition>Advice.Dispatcher.Inactive. getNamedTypes()Returns the named types declared by this enter advice.java.util.Map<java.lang.String,TypeDefinition>Advice.Dispatcher.Inlining. getNamedTypes()Returns the named types declared by this enter advice.java.util.Map<java.lang.String,TypeDefinition>Advice.Dispatcher.Inlining.Resolved.ForMethodEnter. getNamedTypes()Returns the named types declared by this enter advice.java.util.Map<java.lang.String,TypeDefinition>Advice.Dispatcher.Resolved.ForMethodEnter. getNamedTypes()Returns the named types declared by this enter advice.java.util.Map<java.lang.String,TypeDefinition>Advice.Dispatcher.Unresolved. getNamedTypes()Returns the named types declared by this enter advice.protected java.util.Map<java.lang.Integer,TypeDefinition>Advice.Dispatcher.Inlining.Resolved.ForMethodEnter. resolveInitializationTypes(Advice.ArgumentHandler argumentHandler)protected java.util.Map<java.lang.Integer,TypeDefinition>Advice.Dispatcher.Inlining.Resolved.ForMethodExit. resolveInitializationTypes(Advice.ArgumentHandler argumentHandler)protected abstract java.util.Map<java.lang.Integer,TypeDefinition>Advice.Dispatcher.Inlining.Resolved. resolveInitializationTypes(Advice.ArgumentHandler argumentHandler)Resolves the initialization types of this advice method.Methods in net.bytebuddy.asm with parameters of type TypeDefinition Modifier and Type Method Description protected static Advice.Dispatcher.Resolved.ForMethodEnterAdvice.Dispatcher.Delegating.Resolved.ForMethodEnter. of(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Advice.Delegator delegator, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, boolean methodExit)Resolves enter advice that only exposes the enter type if this is necessary.protected static Advice.Dispatcher.Resolved.ForMethodExitAdvice.Dispatcher.Delegating.Resolved.ForMethodExit. of(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Advice.Delegator delegator, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType)Resolves exit advice that handles exceptions depending on the specification of the exit advice.protected static Advice.Dispatcher.Resolved.ForMethodEnterAdvice.Dispatcher.Inlining.Resolved.ForMethodEnter. of(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, org.objectweb.asm.ClassReader classReader, boolean methodExit)Resolves enter advice that only exposes the enter type if this is necessary.protected static Advice.Dispatcher.Resolved.ForMethodExitAdvice.Dispatcher.Inlining.Resolved.ForMethodExit. of(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType)Resolves exit advice that handles exceptions depending on the specification of the exit advice.protected static Advice.Dispatcher.RelocationHandlerAdvice.Dispatcher.RelocationHandler.ForType. of(TypeDescription typeDescription, TypeDefinition checkedType)Resolves a relocation handler that is triggered if the checked instance is of a given type.protected static Advice.Dispatcher.RelocationHandlerAdvice.Dispatcher.RelocationHandler.ForValue. of(TypeDefinition typeDefinition, boolean inverted)Resolves a relocation handler for a given type.protected static Advice.OffsetMapping.Factory<Advice.Enter>Advice.OffsetMapping.ForEnterValue.Factory. of(TypeDefinition typeDefinition)Creates a new factory for creating aAdvice.OffsetMapping.ForEnterValueoffset mapping.protected static Advice.OffsetMapping.Factory<Advice.Exit>Advice.OffsetMapping.ForExitValue.Factory. of(TypeDefinition typeDefinition)Creates a new factory for creating aAdvice.OffsetMapping.ForExitValueoffset mapping.voidAdvice.Dispatcher.SuppressionHandler.Bound. onEnd(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)Invoked at the end of a method.voidAdvice.Dispatcher.SuppressionHandler.NoOp. onEnd(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)Invoked at the end of a method.voidAdvice.Dispatcher.SuppressionHandler.Suppressing.Bound. onEnd(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)Invoked at the end of a method.voidAdvice.Dispatcher.SuppressionHandler.Bound. onEndWithSkip(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)Invoked at the end of a method if the exception handler should be wrapped in a skipping block.voidAdvice.Dispatcher.SuppressionHandler.NoOp. onEndWithSkip(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)Invoked at the end of a method if the exception handler should be wrapped in a skipping block.voidAdvice.Dispatcher.SuppressionHandler.Suppressing.Bound. onEndWithSkip(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, TypeDefinition returnType)Invoked at the end of a method if the exception handler should be wrapped in a skipping block.protected abstract Advice.ArgumentHandler.ForInstrumentedMethodAdvice.ArgumentHandler.Factory. resolve(MethodDescription instrumentedMethod, TypeDefinition enterType, TypeDefinition exitType, java.util.Map<java.lang.String,TypeDefinition> namedTypes)Creates an argument handler.Method parameters in net.bytebuddy.asm with type arguments of type TypeDefinition Modifier and Type Method Description protected static Advice.Dispatcher.Resolved.ForMethodExitAdvice.Dispatcher.Delegating.Resolved.ForMethodExit. of(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Advice.Delegator delegator, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType)Resolves exit advice that handles exceptions depending on the specification of the exit advice.protected static Advice.Dispatcher.Resolved.ForMethodEnterAdvice.Dispatcher.Inlining.Resolved.ForMethodEnter. of(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, org.objectweb.asm.ClassReader classReader, boolean methodExit)Resolves enter advice that only exposes the enter type if this is necessary.protected static Advice.Dispatcher.Resolved.ForMethodExitAdvice.Dispatcher.Inlining.Resolved.ForMethodExit. of(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType)Resolves exit advice that handles exceptions depending on the specification of the exit advice.protected abstract Advice.ArgumentHandler.ForInstrumentedMethodAdvice.ArgumentHandler.Factory. resolve(MethodDescription instrumentedMethod, TypeDefinition enterType, TypeDefinition exitType, java.util.Map<java.lang.String,TypeDefinition> namedTypes)Creates an argument handler.Constructors in net.bytebuddy.asm with parameters of type TypeDefinition Constructor Description Copying(MethodDescription instrumentedMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes, TypeDefinition enterType)Creates a new copying argument handler for an instrumented method.Default(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes)Creates a new argument handler for an enter advice.Default(MethodDescription instrumentedMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes, TypeDefinition enterType)Creates a new default argument handler for an instrumented method.Factory(TypeDefinition enterType)Creates a new factory for creating aAdvice.OffsetMapping.ForEnterValueoffset mapping.Factory(TypeDefinition exitType)Creates a new factory for creating aAdvice.OffsetMapping.ForExitValueoffset mapping.ForDefaultValue(TypeDefinition typeDefinition, StackManipulation readAssignment)Creates a new target for a default value.ForMethodEnter(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes)Creates a new argument handler for an enter advice method.ForMethodEnter(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, Advice.Delegator delegator)Creates a new resolved dispatcher for implementing method enter advice.ForMethodEnter(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, org.objectweb.asm.ClassReader classReader)Creates a new resolved dispatcher for implementing method enter advice.ForMethodExit(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes, TypeDefinition enterType, StackSize throwableSize)Creates a new argument handler for an exit advice method.ForMethodExit(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, Advice.Delegator delegator)Creates a new resolved dispatcher for implementing method exit advice.ForMethodExit(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType)Creates a new resolved dispatcher for implementing method exit advice.ForUnusedValue(TypeDefinition target)Creates a new offset mapping for an unused type.ForVariable(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment)Creates a new target for a local variable mapping.ReadOnly(TypeDefinition typeDefinition)Creates a new writable target for a default value.ReadOnly(TypeDefinition typeDefinition, StackManipulation readAssignment)Creates a new -writable target for a default value.ReadOnly(TypeDefinition typeDefinition, int offset)Creates a read-only mapping for a local variable.ReadOnly(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment)Creates a read-only mapping for a local variable.ReadWrite(TypeDefinition typeDefinition)Creates a new read-only target for a default value.ReadWrite(TypeDefinition typeDefinition, StackManipulation readAssignment)Creates a new read-only target for a default value.ReadWrite(TypeDefinition typeDefinition, int offset)Creates a new target mapping for a writable local variable.ReadWrite(TypeDefinition typeDefinition, int offset, StackManipulation readAssignment, StackManipulation writeAssignment)Creates a new target mapping for a writable local variable.Simple(MethodDescription instrumentedMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes, TypeDefinition enterType)Creates a new simple argument handler for an instrumented method.WithDiscardedEnterType(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, Advice.Delegator delegator)Creates a new resolved dispatcher for implementing method enter advice that does not expose the enter type.WithDiscardedEnterType(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, org.objectweb.asm.ClassReader classReader)Creates a new resolved dispatcher for implementing method enter advice that does not expose the enter type.WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, TypeDescription throwable, Advice.Delegator delegator)Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType, TypeDescription throwable)Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, Advice.Delegator delegator)Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType)Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.WithRetainedEnterType(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, Advice.Delegator delegator)Creates a new resolved dispatcher for implementing method enter advice that does expose the enter type.WithRetainedEnterType(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, org.objectweb.asm.ClassReader classReader)Creates a new resolved dispatcher for implementing method enter advice that does expose the enter type.Constructor parameters in net.bytebuddy.asm with type arguments of type TypeDefinition Constructor Description Copying(MethodDescription instrumentedMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes, TypeDefinition enterType)Creates a new copying argument handler for an instrumented method.Default(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes)Creates a new argument handler for an enter advice.Default(MethodDescription instrumentedMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes, TypeDefinition enterType)Creates a new default argument handler for an instrumented method.Factory(java.util.Map<java.lang.String,TypeDefinition> namedTypes)Creates a factory for aAdvice.Localvariable mapping.ForMethodEnter(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes)Creates a new argument handler for an enter advice method.ForMethodEnter(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, org.objectweb.asm.ClassReader classReader)Creates a new resolved dispatcher for implementing method enter advice.ForMethodExit(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes, TypeDefinition enterType, StackSize throwableSize)Creates a new argument handler for an exit advice method.ForMethodExit(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, Advice.Delegator delegator)Creates a new resolved dispatcher for implementing method exit advice.ForMethodExit(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType)Creates a new resolved dispatcher for implementing method exit advice.Simple(MethodDescription instrumentedMethod, TypeDefinition exitType, java.util.TreeMap<java.lang.String,TypeDefinition> namedTypes, TypeDefinition enterType)Creates a new simple argument handler for an instrumented method.WithDiscardedEnterType(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, org.objectweb.asm.ClassReader classReader)Creates a new resolved dispatcher for implementing method enter advice that does not expose the enter type.WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, TypeDescription throwable, Advice.Delegator delegator)Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType, TypeDescription throwable)Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, Advice.Delegator delegator)Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType)Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.WithRetainedEnterType(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.Map<java.lang.String,TypeDefinition> namedTypes, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition exitType, org.objectweb.asm.ClassReader classReader)Creates a new resolved dispatcher for implementing method enter advice that does expose the enter type. -
Uses of TypeDefinition in net.bytebuddy.description
Methods in net.bytebuddy.description that return TypeDefinition Modifier and Type Method Description TypeDefinitionDeclaredByType. getDeclaringType()Returns the declaring type of this instance. -
Uses of TypeDefinition in net.bytebuddy.description.annotation
Methods in net.bytebuddy.description.annotation with parameters of type TypeDefinition Modifier and Type Method Description AnnotationValue<T,S>AnnotationValue. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<AnnotationDescription,U>AnnotationValue.ForAnnotationDescription. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<U,U>AnnotationValue.ForConstant. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<U,V>AnnotationValue.ForDescriptionArray. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<EnumerationDescription,U>AnnotationValue.ForEnumerationDescription. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<EnumerationDescription,U>AnnotationValue.ForEnumerationDescription.WithUnknownConstant. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<U,V>AnnotationValue.ForIncompatibleType. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<U,V>AnnotationValue.ForMismatchedType. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<U,V>AnnotationValue.ForMissingType. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<U,V>AnnotationValue.ForMissingValue. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property.AnnotationValue<TypeDescription,U>AnnotationValue.ForTypeDescription. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property. -
Uses of TypeDefinition in net.bytebuddy.description.method
Fields in net.bytebuddy.description.method with type parameters of type TypeDefinition Modifier and Type Field Description private java.util.List<? extends TypeDefinition>ParameterList.Explicit.ForTypes. typeDefinitionsA list of detached types representing the parameters.private java.util.List<? extends TypeDefinition>ParameterDescription.Token.TypeList. typeDescriptionsThe list of types to represent as parameter tokens.Method parameters in net.bytebuddy.description.method with type arguments of type TypeDefinition Modifier and Type Method Description private booleanMethodDescription.AbstractBase. isBootstrap(java.util.List<? extends TypeDefinition> types)Checks if this method is a bootstrap method given the supplied arguments.booleanMethodDescription.AbstractBase. isConstantBootstrap(java.util.List<? extends TypeDefinition> arguments)Checks if this method is a valid bootstrap method for an constantdynamic call.booleanMethodDescription. isConstantBootstrap(java.util.List<? extends TypeDefinition> arguments)Checks if this method is a valid bootstrap method for an constantdynamic call.booleanMethodDescription.AbstractBase. isInvokeBootstrap(java.util.List<? extends TypeDefinition> arguments)Checks if this method is a valid bootstrap method for an invokedynamic call.booleanMethodDescription. isInvokeBootstrap(java.util.List<? extends TypeDefinition> arguments)Checks if this method is a valid bootstrap method for an invokedynamic call.Constructors in net.bytebuddy.description.method with parameters of type TypeDefinition Constructor Description ForTypes(MethodDescription.InDefinedShape methodDescription, TypeDefinition... typeDefinition)Creates a new parameter type list.Constructor parameters in net.bytebuddy.description.method with type arguments of type TypeDefinition Constructor Description ForTypes(MethodDescription.InDefinedShape methodDescription, java.util.List<? extends TypeDefinition> typeDefinitions)Creates a new parameter type list.TypeList(java.util.List<? extends TypeDefinition> typeDescriptions)Creates a new list of types that represent parameters. -
Uses of TypeDefinition in net.bytebuddy.description.type
Subinterfaces of TypeDefinition in net.bytebuddy.description.type Modifier and Type Interface Description interfaceTypeDescriptionImplementations of this interface represent a Java type, i.e.static interfaceTypeDescription.GenericRepresents a generic type of the Java programming language.Classes in net.bytebuddy.description.type that implement TypeDefinition Modifier and Type Class Description static classTypeDescription.AbstractBaseAn abstract base implementation of a type description.static classTypeDescription.AbstractBase.OfSimpleTypeAn adapter implementation of aTypeDescriptionthat describes any type that is not an array or a primitive type.static classTypeDescription.AbstractBase.OfSimpleType.WithDelegationAn implementation of a type description that delegates all properties but the type's name to a delegate.static classTypeDescription.ArrayProjectionA projection for an array type based on an existingTypeDescription.static classTypeDescription.ForLoadedTypeA type description implementation that represents a loaded type.protected static classTypeDescription.ForLoadedType.ClassDescriptionTypeList.InternalNameLazyTypeA lazy representation of an internal name for a given class loader.static classTypeDescription.ForPackageDescriptionA type representation of a package description.static classTypeDescription.Generic.AbstractBaseAn abstract base implementation of a generic type description.static classTypeDescription.Generic.LazyProjectionA lazy projection of a generic type.static classTypeDescription.Generic.LazyProjection.ForLoadedFieldTypeA lazy projection of a field's type.static classTypeDescription.Generic.LazyProjection.ForLoadedReturnTypeA lazy projection of a method's generic return type.static classTypeDescription.Generic.LazyProjection.ForLoadedSuperClassA lazy projection of a generic super type.static classTypeDescription.Generic.LazyProjection.OfConstructorParameterA lazy projection of the parameter type of aConstructor.static classTypeDescription.Generic.LazyProjection.OfMethodParameterA lazy projection of the parameter type of aMethod.static classTypeDescription.Generic.LazyProjection.OfRecordComponentA lazy projection of ajava.lang.reflect.RecordComponent's type.static classTypeDescription.Generic.LazyProjection.WithEagerNavigationA lazy projection of a type that resolves super class and interface types eagerly.protected static classTypeDescription.Generic.LazyProjection.WithEagerNavigation.OfAnnotatedElementA description of an annotated lazy type with eager navigation.static classTypeDescription.Generic.LazyProjection.WithLazyNavigationA lazy projection of a type with a lazy resolution of super class and interface types.protected static classTypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceTypeA lazy interface type description for a lazy projection.protected static classTypeDescription.Generic.LazyProjection.WithLazyNavigation.LazySuperClassA lazy super class description for a lazy projection.protected static classTypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElementA description of an annotated lazy type with lazy navigation.static classTypeDescription.Generic.LazyProjection.WithResolvedErasureA lazy projection that applies a visitor only when resolving the generic type but not when reading the erasure.static classTypeDescription.Generic.OfGenericArrayA base implementation of a generic type description that represents a potentially generic array.static classTypeDescription.Generic.OfGenericArray.ForLoadedTypeA description of a loaded generic array type.static classTypeDescription.Generic.OfGenericArray.LatentA latent implementation of a generic array type.static classTypeDescription.Generic.OfNonGenericTypeA raw type representation of a non-generic type.static classTypeDescription.Generic.OfNonGenericType.ForErasureA type description for a type erasure.static classTypeDescription.Generic.OfNonGenericType.ForLoadedTypeRepresents a non-generic type for a loadedClass.static classTypeDescription.Generic.OfNonGenericType.ForReifiedErasureA representation of a raw type that preserves its generic super types' generic information with a minimum but erases all of their members' types.static classTypeDescription.Generic.OfNonGenericType.LatentA latent description of a non-generic type.static classTypeDescription.Generic.OfParameterizedTypeA base implementation of a generic type description that represents a parameterized type.static classTypeDescription.Generic.OfParameterizedType.ForGenerifiedErasureRepresents an erasure as a generic type where all type variables are representing their own arguments.static classTypeDescription.Generic.OfParameterizedType.ForLoadedTypeDescription of a loaded parameterized type.static classTypeDescription.Generic.OfParameterizedType.ForReifiedTypeA representation of a parameterized type that is a super type of a raw type but preserves the minimal type information that is required for allowing creating correct erasures for overridden methods.static classTypeDescription.Generic.OfParameterizedType.LatentA latent description of a parameterized type.static classTypeDescription.Generic.OfTypeVariableA base implementation of a generic type description that represents a type variable.static classTypeDescription.Generic.OfTypeVariable.ForLoadedTypeDescription of a loaded type variable.static classTypeDescription.Generic.OfTypeVariable.SymbolicImplementation of a symbolic type variable.static classTypeDescription.Generic.OfTypeVariable.WithAnnotationOverlayA type variable with explicit annotations that replace the annotations that are declared by the provided type variable.static classTypeDescription.Generic.OfWildcardTypeA base implementation of a generic type description that represents a wildcard type.static classTypeDescription.Generic.OfWildcardType.ForLoadedTypeDescription of a loaded wildcard.static classTypeDescription.Generic.OfWildcardType.LatentA latent description of a wildcard type.protected static classTypeDescription.Generic.Visitor.AnnotationStripper.NonAnnotatedTypeVariableRepresentation of a type variable without annotations.protected classTypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.RetainedMethodTypeVariableImplementation of a type variable on a method that is not substituted.static classTypeDescription.LatentA latent type description for a type without methods or fields.static classTypeDescription.SuperTypeLoadingA delegating type description that always attempts to load the super types of a delegate type.protected static classTypeDescription.SuperTypeLoading.ClassLoadingTypeProjectionA type projection that attempts to load any super type of the delegate type.protected static classTypeList.Generic.ForDetachedTypes.OfTypeVariables.AttachedTypeVariableA wrapper for representing a type variable in its attached state.private static classTypeList.Generic.OfConstructorExceptionTypes.TypeProjectionA projection of a specific exception type.private static classTypeList.Generic.OfLoadedInterfaceTypes.TypeProjectionA type projection of an interface type.private static classTypeList.Generic.OfMethodExceptionTypes.TypeProjectionA projection of a specific exception type.Fields in net.bytebuddy.description.type declared as TypeDefinition Modifier and Type Field Description private TypeDefinitionTypeDefinition.SuperClassIterator. nextClassThe next class to represent.Fields in net.bytebuddy.description.type with type parameters of type TypeDefinition Modifier and Type Field Description private java.util.List<? extends TypeDefinition>TypeList.Generic.Explicit. typeDefinitionsThe generic types represented by this list.Methods in net.bytebuddy.description.type that return TypeDefinition Modifier and Type Method Description TypeDefinitionTypeDefinition. getComponentType()Returns the component type of this type.TypeDefinitionRecordComponentDescription.TypeSubstituting. getDeclaringType()Returns the declaring type of this instance.TypeDefinitionTypeDefinition.SuperClassIterator. next()Methods in net.bytebuddy.description.type that return types with arguments of type TypeDefinition Modifier and Type Method Description java.util.Iterator<TypeDefinition>TypeDescription.AbstractBase. iterator()java.util.Iterator<TypeDefinition>TypeDescription.Generic.LazyProjection.WithEagerNavigation. iterator()java.util.Iterator<TypeDefinition>TypeDescription.Generic.LazyProjection.WithLazyNavigation. iterator()java.util.Iterator<TypeDefinition>TypeDescription.Generic.OfGenericArray. iterator()java.util.Iterator<TypeDefinition>TypeDescription.Generic.OfNonGenericType. iterator()java.util.Iterator<TypeDefinition>TypeDescription.Generic.OfParameterizedType. iterator()java.util.Iterator<TypeDefinition>TypeDescription.Generic.OfTypeVariable. iterator()java.util.Iterator<TypeDefinition>TypeDescription.Generic.OfTypeVariable.Symbolic. iterator()java.util.Iterator<TypeDefinition>TypeDescription.Generic.OfWildcardType. iterator()java.util.Iterator<TypeDefinition>TypeDescription.SuperTypeLoading.ClassLoadingTypeProjection. iterator()Methods in net.bytebuddy.description.type with parameters of type TypeDefinition Modifier and Type Method Description static TypeDescription.Generic.Visitor<TypeDescription.Generic>TypeDescription.Generic.Visitor.Substitutor.ForDetachment. of(TypeDefinition typeDefinition)Returns a new detachment visitor that detaches any type matching the supplied type description.static TypeDescription.Generic.BuilderTypeDescription.Generic.Builder. parameterizedType(TypeDescription rawType, TypeDefinition... parameter)Creates a parameterized type without an owner type or with a non-generic owner type.Method parameters in net.bytebuddy.description.type with type arguments of type TypeDefinition Modifier and Type Method Description static TypeDescription.Generic.BuilderTypeDescription.Generic.Builder. parameterizedType(TypeDescription rawType, java.util.Collection<? extends TypeDefinition> parameters)Creates a parameterized type without an owner type or with a non-generic owner type.static TypeDescription.Generic.BuilderTypeDescription.Generic.Builder. parameterizedType(TypeDescription rawType, TypeDescription.Generic ownerType, java.util.Collection<? extends TypeDefinition> parameters)Creates a parameterized type.Constructors in net.bytebuddy.description.type with parameters of type TypeDefinition Constructor Description Explicit(TypeDefinition... typeDefinition)Creates a new explicit list of generic types.ForAttachment(TypeDefinition declaringType, TypeVariableSource typeVariableSource)Creates a visitor for attaching type variables.SuperClassIterator(TypeDefinition initialType)Creates a new iterator.Constructor parameters in net.bytebuddy.description.type with type arguments of type TypeDefinition Constructor Description Explicit(java.util.List<? extends TypeDefinition> typeDefinitions)Creates a new explicit list of generic types. -
Uses of TypeDefinition in net.bytebuddy.dynamic
Fields in net.bytebuddy.dynamic declared as TypeDefinition Modifier and Type Field Description private TypeDefinitionTransformer.ForField.TransformedField. declaringTypeThe field's declaring type.private TypeDefinitionTransformer.ForMethod.TransformedMethod. declaringTypeThe method's declaring type.Methods in net.bytebuddy.dynamic that return TypeDefinition Modifier and Type Method Description TypeDefinitionTransformer.ForField.TransformedField. getDeclaringType()Returns the declaring type of this instance.TypeDefinitionTransformer.ForMethod.TransformedMethod. getDeclaringType()Returns the declaring type of this instance.Methods in net.bytebuddy.dynamic with parameters of type TypeDefinition Modifier and Type Method Description DynamicType.Builder.FieldDefinition.Optional.Valuable<U>DynamicType.Builder.AbstractBase.Adapter. defineField(java.lang.String name, TypeDefinition type, int modifiers)Defines the specified field as a field of the built dynamic type.DynamicType.Builder.FieldDefinition.Optional.Valuable<S>DynamicType.Builder.AbstractBase. defineField(java.lang.String name, TypeDefinition type, java.util.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(java.lang.String name, TypeDefinition type, ModifierContributor.ForField... modifierContributor)Defines the specified field as a field of the built dynamic type.DynamicType.Builder.FieldDefinition.Optional.Valuable<U>DynamicType.Builder.AbstractBase.Delegator. defineField(java.lang.String name, TypeDefinition type, int modifiers)Defines the specified field as a field of the built dynamic type.DynamicType.Builder.FieldDefinition.Optional.Valuable<T>DynamicType.Builder. defineField(java.lang.String name, TypeDefinition type, int modifiers)Defines the specified field as a field of the built dynamic type.DynamicType.Builder.FieldDefinition.Optional.Valuable<T>DynamicType.Builder. defineField(java.lang.String name, TypeDefinition type, java.util.Collection<? extends ModifierContributor.ForField> modifierContributors)Defines the specified field as a field of the built dynamic type.DynamicType.Builder.FieldDefinition.Optional.Valuable<T>DynamicType.Builder. defineField(java.lang.String name, TypeDefinition type, ModifierContributor.ForField... modifierContributor)Defines the specified field as a field of the built dynamic type.DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<U>DynamicType.Builder.AbstractBase.Adapter. defineMethod(java.lang.String name, TypeDefinition returnType, int modifiers)Defines the specified method to be declared by the instrumented type.DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<S>DynamicType.Builder.AbstractBase. defineMethod(java.lang.String name, TypeDefinition returnType, java.util.Collection<? extends ModifierContributor.ForMethod> modifierContributors)Defines the specified method to be declared by the instrumented type.DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<S>DynamicType.Builder.AbstractBase. defineMethod(java.lang.String name, TypeDefinition returnType, ModifierContributor.ForMethod... modifierContributor)Defines the specified method to be declared by the instrumented type.DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<U>DynamicType.Builder.AbstractBase.Delegator. defineMethod(java.lang.String name, TypeDefinition returnType, int modifiers)Defines the specified method to be declared by the instrumented type.DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<T>DynamicType.Builder. defineMethod(java.lang.String name, TypeDefinition returnType, int modifiers)Defines the specified method to be declared by the instrumented type.DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<T>DynamicType.Builder. defineMethod(java.lang.String name, TypeDefinition returnType, java.util.Collection<? extends ModifierContributor.ForMethod> modifierContributors)Defines the specified method to be declared by the instrumented type.DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<T>DynamicType.Builder. defineMethod(java.lang.String name, TypeDefinition returnType, ModifierContributor.ForMethod... modifierContributor)Defines the specified method to be declared by the instrumented type.DynamicType.Builder.FieldDefinition.Optional<S>DynamicType.Builder.AbstractBase. defineProperty(java.lang.String name, TypeDefinition type)Defines a Java bean property with the specified name.DynamicType.Builder.FieldDefinition.Optional<S>DynamicType.Builder.AbstractBase. defineProperty(java.lang.String name, TypeDefinition type, boolean readOnly)Defines a Java bean property with the specified name.DynamicType.Builder.FieldDefinition.Optional<T>DynamicType.Builder. defineProperty(java.lang.String name, TypeDefinition type)Defines a Java bean property with the specified name.DynamicType.Builder.FieldDefinition.Optional<T>DynamicType.Builder. defineProperty(java.lang.String name, TypeDefinition type, boolean readOnly)Defines a Java bean property with the specified name.DynamicType.Builder.RecordComponentDefinition.Optional<U>DynamicType.Builder.AbstractBase.Adapter. defineRecordComponent(java.lang.String name, TypeDefinition type)Defines a new record component.DynamicType.Builder.RecordComponentDefinition.Optional<U>DynamicType.Builder.AbstractBase.Delegator. defineRecordComponent(java.lang.String name, TypeDefinition type)Defines a new record component.DynamicType.Builder.RecordComponentDefinition.Optional<T>DynamicType.Builder. defineRecordComponent(java.lang.String name, TypeDefinition type)Defines a new record component.DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<S>DynamicType.Builder.AbstractBase. implement(TypeDefinition... interfaceType)Implements the supplied interfaces for the instrumented type.DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<T>DynamicType.Builder. implement(TypeDefinition... interfaceType)Implements the supplied interfaces for the instrumented type.DynamicType.Builder.MethodDefinition.ExceptionDefinition<V>DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase. throwing(TypeDefinition... type)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>DynamicType.Builder.MethodDefinition.ExceptionDefinition. throwing(TypeDefinition... type)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.TypeVariableDefinition<S>DynamicType.Builder.AbstractBase. typeVariable(java.lang.String symbol, TypeDefinition... bound)Defines the supplied type variable with the given bound as a type variable of the instrumented type.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase. typeVariable(java.lang.String symbol, TypeDefinition... bound)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U>DynamicType.Builder.MethodDefinition.TypeVariableDefinition. typeVariable(java.lang.String symbol, TypeDefinition... bound)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.TypeVariableDefinition<T>DynamicType.Builder. typeVariable(java.lang.String symbol, TypeDefinition... bound)Defines the supplied type variable with the given bound as a type variable of the instrumented type.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<U>DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter. withParameter(TypeDefinition type)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U>DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter. withParameter(TypeDefinition type, java.lang.String name, int modifiers)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase. withParameter(TypeDefinition type, java.lang.String name, java.util.Collection<? extends ModifierContributor.ForParameter> modifierContributors)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase. withParameter(TypeDefinition type, java.lang.String name, ModifierContributor.ForParameter... modifierContributor)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<X>DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter. withParameter(TypeDefinition type, java.lang.String name, int modifiers)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<X>DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter. withParameter(TypeDefinition type)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple. withParameter(TypeDefinition type)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U>DynamicType.Builder.MethodDefinition.ParameterDefinition. withParameter(TypeDefinition type, java.lang.String name, int modifiers)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U>DynamicType.Builder.MethodDefinition.ParameterDefinition. withParameter(TypeDefinition type, java.lang.String name, java.util.Collection<? extends ModifierContributor.ForParameter> modifierContributors)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U>DynamicType.Builder.MethodDefinition.ParameterDefinition. withParameter(TypeDefinition type, java.lang.String name, ModifierContributor.ForParameter... modifierContributor)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<W>DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase. withParameters(TypeDefinition... type)Defines the specified parameters for the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<V>DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial. withParameters(TypeDefinition... type)Defines the specified parameters for the currently defined method.Method parameters in net.bytebuddy.dynamic with type arguments of type TypeDefinition Modifier and Type Method Description DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<U>DynamicType.Builder.AbstractBase.Adapter. implement(java.util.Collection<? extends TypeDefinition> interfaceTypes)Implements the supplied interfaces for the instrumented type.DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<U>DynamicType.Builder.AbstractBase.Delegator. implement(java.util.Collection<? extends TypeDefinition> interfaceTypes)Implements the supplied interfaces for the instrumented type.DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<T>DynamicType.Builder. implement(java.util.Collection<? extends TypeDefinition> interfaceTypes)Implements the supplied interfaces for the instrumented type.DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter. throwing(java.util.Collection<? extends TypeDefinition> types)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>DynamicType.Builder.MethodDefinition.ExceptionDefinition. throwing(java.util.Collection<? extends TypeDefinition> types)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<X>DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter. throwing(java.util.Collection<? extends TypeDefinition> types)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<X>DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter. throwing(java.util.Collection<? extends TypeDefinition> types)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U>DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter. typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.TypeVariableDefinition<U>DynamicType.Builder.AbstractBase.Adapter. typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)Defines the supplied type variable with the given bound as a type variable of the instrumented type.DynamicType.Builder.TypeVariableDefinition<U>DynamicType.Builder.AbstractBase.Delegator. typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)Defines the supplied type variable with the given bound as a type variable of the instrumented type.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X>DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter. typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X>DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter. typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X>DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter. typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U>DynamicType.Builder.MethodDefinition.TypeVariableDefinition. typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)Defines a method variable to be declared by the currently defined method.DynamicType.Builder.TypeVariableDefinition<T>DynamicType.Builder. typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)Defines the supplied type variable with the given bound as a type variable of the instrumented type.DynamicType.Builder.MethodDefinition.ExceptionDefinition<W>DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase. withParameters(java.util.Collection<? extends TypeDefinition> types)Defines the specified parameters for the currently defined method.DynamicType.Builder.MethodDefinition.ExceptionDefinition<V>DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial. withParameters(java.util.Collection<? extends TypeDefinition> types)Defines the specified parameters for the currently defined method.Constructors in net.bytebuddy.dynamic with parameters of type TypeDefinition Constructor Description TransformedField(TypeDescription instrumentedType, TypeDefinition declaringType, FieldDescription.Token token, FieldDescription.InDefinedShape fieldDescription)Creates a new transformed field.TransformedMethod(TypeDescription instrumentedType, TypeDefinition declaringType, MethodDescription.Token token, MethodDescription.InDefinedShape methodDescription)Creates a new transformed method. -
Uses of TypeDefinition in net.bytebuddy.dynamic.scaffold
Subinterfaces of TypeDefinition in net.bytebuddy.dynamic.scaffold Modifier and Type Interface Description interfaceInstrumentedTypeImplementations of this interface represent an instrumented type that is subject to change.static interfaceInstrumentedType.WithFlexibleNameImplementations represent anInstrumentedTypewith a flexible name.Classes in net.bytebuddy.dynamic.scaffold that implement TypeDefinition Modifier and Type Class Description static classInstrumentedType.DefaultA default implementation of an instrumented type.static classInstrumentedType.FrozenA frozen representation of an instrumented type of which the structure must not be modified.Methods in net.bytebuddy.dynamic.scaffold with parameters of type TypeDefinition Modifier and Type Method Description protected MethodGraph.Compiler.Default.Key.Store<T>MethodGraph.Compiler.Default. analyze(TypeDefinition typeDefinition, TypeDefinition key, java.util.Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots, ElementMatcher<? super MethodDescription> relevanceMatcher)Analyzes the given type description without checking if the end of the type hierarchy was reached.MethodGraph.LinkedMethodGraph.Compiler. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)Compiles the given type into a method graph.MethodGraph.LinkedMethodGraph.Compiler.Default. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)Compiles the given type into a method graph.MethodGraph.LinkedMethodGraph.Compiler.ForDeclaredMethods. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)Compiles the given type into a method graph.MethodGraph.LinkedMethodGraph.Empty. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)Compiles the given type into a method graph.protected MethodGraph.Compiler.Default.Key.Store<T>MethodGraph.Compiler.Default. doAnalyze(TypeDefinition typeDefinition, java.util.Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots, ElementMatcher<? super MethodDescription> relevanceMatcher)Analyzes the given type description without checking if it is already presented in the key store.Method parameters in net.bytebuddy.dynamic.scaffold with type arguments of type TypeDefinition Modifier and Type Method Description protected MethodGraph.Compiler.Default.Key.Store<T>MethodGraph.Compiler.Default. analyze(TypeDefinition typeDefinition, TypeDefinition key, java.util.Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots, ElementMatcher<? super MethodDescription> relevanceMatcher)Analyzes the given type description without checking if the end of the type hierarchy was reached.protected MethodGraph.Compiler.Default.Key.Store<T>MethodGraph.Compiler.Default. analyzeNullable(TypeDescription.Generic typeDescription, java.util.Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots, ElementMatcher<? super MethodDescription> relevanceMatcher)Analyzes the given type description.protected MethodGraph.Compiler.Default.Key.Store<T>MethodGraph.Compiler.Default. doAnalyze(TypeDefinition typeDefinition, java.util.Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots, ElementMatcher<? super MethodDescription> relevanceMatcher)Analyzes the given type description without checking if it is already presented in the key store. -
Uses of TypeDefinition in net.bytebuddy.dynamic.scaffold.inline
Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type TypeDefinition Modifier and Type Method Description DynamicType.Builder.FieldDefinition.Optional.Valuable<T>DecoratingDynamicTypeBuilder. defineField(java.lang.String name, TypeDefinition type, int modifiers)Defines the specified field as a field of the built dynamic type.DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<T>DecoratingDynamicTypeBuilder. defineMethod(java.lang.String name, TypeDefinition returnType, int modifiers)Defines the specified method to be declared by the instrumented type.DynamicType.Builder.RecordComponentDefinition.Optional<T>DecoratingDynamicTypeBuilder. defineRecordComponent(java.lang.String name, TypeDefinition type)Defines a new record component.Method parameters in net.bytebuddy.dynamic.scaffold.inline with type arguments of type TypeDefinition Modifier and Type Method Description DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<T>DecoratingDynamicTypeBuilder. implement(java.util.Collection<? extends TypeDefinition> interfaceTypes)Implements the supplied interfaces for the instrumented type.DynamicType.Builder.TypeVariableDefinition<T>DecoratingDynamicTypeBuilder. typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)Defines the supplied type variable with the given bound as a type variable of the instrumented type. -
Uses of TypeDefinition in net.bytebuddy.dynamic.scaffold.subclass
Methods in net.bytebuddy.dynamic.scaffold.subclass that return TypeDefinition Modifier and Type Method Description TypeDefinitionSubclassImplementationTarget. getOriginType()Identifies the origin type of an implementation.protected abstract TypeDefinitionSubclassImplementationTarget.OriginTypeResolver. identify(TypeDescription typeDescription)Identifies the origin type to a given type description. -
Uses of TypeDefinition in net.bytebuddy.implementation
Fields in net.bytebuddy.implementation declared as TypeDefinition Modifier and Type Field Description private TypeDefinitionMethodCall.ArgumentLoader.ForStackManipulation. typeDefinitionThe type of the resulting value.Methods in net.bytebuddy.implementation that return TypeDefinition Modifier and Type Method Description TypeDefinitionImplementation.Target. getOriginType()Identifies the origin type of an implementation.Methods in net.bytebuddy.implementation with parameters of type TypeDefinition Modifier and Type Method Description static StackManipulationEqualsMethod.ValueComparator. of(TypeDefinition typeDefinition)Resolves a type definition to a equality comparison.static StackManipulationHashCodeMethod.ValueTransformer. of(TypeDefinition typeDefinition)Resolves a type definition to a hash code.protected abstract booleanEqualsMethod.TypePropertyComparator. resolve(TypeDefinition typeDefinition)Resolves a type property.static MethodDelegationMethodDelegation. to(java.lang.Object target, TypeDefinition typeDefinition)Delegates any intercepted method to invoke a non-staticmethod that is declared by the supplied type's instance or any of its super types.static MethodDelegationMethodDelegation. to(java.lang.Object target, TypeDefinition typeDefinition, java.lang.String fieldName)Delegates any intercepted method to invoke a non-staticmethod that is declared by the supplied type's instance or any of its super types.static MethodDelegationMethodDelegation. to(java.lang.Object target, TypeDefinition typeDefinition, java.lang.String fieldName, MethodGraph.Compiler methodGraphCompiler)Delegates any intercepted method to invoke a non-staticmethod that is declared by the supplied type's instance or any of its super types.static MethodDelegationMethodDelegation. to(java.lang.Object target, TypeDefinition typeDefinition, MethodGraph.Compiler methodGraphCompiler)Delegates any intercepted method to invoke a non-staticmethod that is declared by the supplied type's instance or any of its super types.MethodDelegationMethodDelegation.WithCustomProperties. to(java.lang.Object target, TypeDefinition typeDefinition)Delegates any intercepted method to invoke a non-staticmethod that is declared by the supplied type's instance or any of its super types.MethodDelegationMethodDelegation.WithCustomProperties. to(java.lang.Object target, TypeDefinition typeDefinition, java.lang.String fieldName)Delegates any intercepted method to invoke a non-staticmethod that is declared by the supplied type's instance or any of its super types.MethodDelegationMethodDelegation.WithCustomProperties. to(java.lang.Object target, TypeDefinition typeDefinition, java.lang.String fieldName, MethodGraph.Compiler methodGraphCompiler)Delegates any intercepted method to invoke a non-staticmethod that is declared by the supplied type's instance or any of its super types.MethodDelegationMethodDelegation.WithCustomProperties. to(java.lang.Object target, TypeDefinition typeDefinition, MethodGraph.Compiler methodGraphCompiler)Delegates any intercepted method to invoke a non-staticmethod that is declared by the supplied type's instance or any of its super types.MethodCallMethodCall. with(StackManipulation stackManipulation, TypeDefinition typeDefinition)Adds a stack manipulation as an assignment to the next parameter.Constructors in net.bytebuddy.implementation with parameters of type TypeDefinition Constructor Description ForStackManipulation(StackManipulation stackManipulation, TypeDefinition typeDefinition)Creates an argument loader that loads a stack manipulation as an argument. -
Uses of TypeDefinition in net.bytebuddy.implementation.auxiliary
Methods in net.bytebuddy.implementation.auxiliary with parameters of type TypeDefinition Modifier and Type Method Description MethodGraph.LinkedMethodCallProxy.PrecomputedMethodGraph. compile(TypeDefinition typeDefinition, TypeDescription viewPoint)Compiles the given type into a method graph. -
Uses of TypeDefinition in net.bytebuddy.implementation.bytecode
Methods in net.bytebuddy.implementation.bytecode with parameters of type TypeDefinition Modifier and Type Method Description abstract StackManipulationDuplication. flipOver(TypeDefinition typeDefinition)Creates a duplication that flips the stack's top value over the second stack element.static DuplicationDuplication. of(TypeDefinition typeDefinition)Duplicates a value given its type.static StackManipulationRemoval. of(TypeDefinition typeDefinition)Removes a value from the operand stack dependant of its size.static intStackSize. of(TypeDefinition... typeDefinition)Computes the stack size of all supplied types.Method parameters in net.bytebuddy.implementation.bytecode with type arguments of type TypeDefinition Modifier and Type Method Description static intStackSize. of(java.util.Collection<? extends TypeDefinition> typeDefinitions)Computes the stack size of all supplied types. -
Uses of TypeDefinition in net.bytebuddy.implementation.bytecode.assign
Methods in net.bytebuddy.implementation.bytecode.assign with parameters of type TypeDefinition Modifier and Type Method Description static StackManipulationTypeCasting. to(TypeDefinition typeDefinition)Creates a casting to the given, non-primitive type. -
Uses of TypeDefinition in net.bytebuddy.implementation.bytecode.assign.primitive
Methods in net.bytebuddy.implementation.bytecode.assign.primitive with parameters of type TypeDefinition Modifier and Type Method Description static PrimitiveBoxingDelegatePrimitiveBoxingDelegate. forPrimitive(TypeDefinition typeDefinition)Locates a boxing delegate for a given primitive type.static PrimitiveUnboxingDelegatePrimitiveUnboxingDelegate. forPrimitive(TypeDefinition typeDefinition)Locates a primitive unboxing delegate for a given primitive type.static PrimitiveWideningDelegatePrimitiveWideningDelegate. forPrimitive(TypeDefinition typeDefinition)Locates the delegate that is capable of widening the given type into another type.static PrimitiveUnboxingDelegate.UnboxingResponsiblePrimitiveUnboxingDelegate. forReferenceType(TypeDefinition typeDefinition)Creates an unboxing responsible that is capable of unboxing a wrapper type.StackManipulationPrimitiveWideningDelegate. widenTo(TypeDefinition typeDefinition)Attempts to widen the represented type into another type. -
Uses of TypeDefinition in net.bytebuddy.implementation.bytecode.collection
Methods in net.bytebuddy.implementation.bytecode.collection with parameters of type TypeDefinition Modifier and Type Method Description private static ArrayFactory.ArrayCreatorArrayFactory. makeArrayCreatorFor(TypeDefinition componentType)Creates a suitable array creator for the given component type.static ArrayAccessArrayAccess. of(TypeDefinition componentType)Locates an array accessor by the array's component type. -
Uses of TypeDefinition in net.bytebuddy.implementation.bytecode.constant
Methods in net.bytebuddy.implementation.bytecode.constant with parameters of type TypeDefinition Modifier and Type Method Description static StackManipulationDefaultValue. of(TypeDefinition typeDefinition)Creates a stack assignment that loads the default value for a given type. -
Uses of TypeDefinition in net.bytebuddy.implementation.bytecode.member
Fields in net.bytebuddy.implementation.bytecode.member declared as TypeDefinition Modifier and Type Field Description private TypeDefinitionFieldAccess.OfGenericField. targetTypeThe resolved generic field type.Methods in net.bytebuddy.implementation.bytecode.member with parameters of type TypeDefinition Modifier and Type Method Description static StackManipulationMethodReturn. of(TypeDefinition typeDefinition)Returns a method return corresponding to a given type.static MethodVariableAccessMethodVariableAccess. of(TypeDefinition typeDefinition)Locates the correct accessor for a variable of a given type.Constructors in net.bytebuddy.implementation.bytecode.member with parameters of type TypeDefinition Constructor Description OfGenericField(TypeDefinition targetType, FieldAccess.Defined defined)Creates a new dispatcher for a generic field. -
Uses of TypeDefinition in net.bytebuddy.matcher
Classes in net.bytebuddy.matcher with type parameters of type TypeDefinition Modifier and Type Class Description classArrayTypeMatcher<T extends TypeDefinition>Matches an enumeration type.classCollectionErasureMatcher<T extends java.lang.Iterable<? extends TypeDefinition>>An element matcher that matches a collection of types by their erasures.classDeclaringFieldMatcher<T extends TypeDefinition>An element matcher that checks if a type description declares fields of a given property.classDeclaringMethodMatcher<T extends TypeDefinition>An element matcher that checks if a type description declares methods of a given property.classErasureMatcher<T extends TypeDefinition>An element matcher that matches its argument'sTypeDescription.Genericraw type against the given matcher for aTypeDescription.classPrimitiveTypeMatcher<T extends TypeDefinition>Matches a primitive type.classRecordMatcher<T extends TypeDefinition>Matches a record.classTypeSortMatcher<T extends TypeDefinition>An element matcher that validates that a given generic type description represents a type of a given name.Methods in net.bytebuddy.matcher with type parameters of type TypeDefinition Modifier and Type Method Description static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. anyOf(java.lang.reflect.Type... value)Creates a matcher that matches any of the given types asTypeDescriptions by theObject.equals(Object)method.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. declaresField(ElementMatcher<? super FieldDescription> matcher)Matches a type by a another matcher that is applied on any of its declared fields.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. declaresMethod(ElementMatcher<? super MethodDescription> matcher)Matches a type by a another matcher that is applied on any of its declared methods.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. is(java.lang.reflect.Type type)Exactly matches a given type as aTypeDescription.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. isArray()Matches a type if it is an array type.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. isPrimitive()Matches a type if it is primitive.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. isRecord()Matches a type if it is a record type.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. isVariable(java.lang.String symbol)Matches a type variable with the given name.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. isVariable(ElementMatcher<? super NamedElement> matcher)Matches a type variable with the given name.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. noneOf(java.lang.reflect.Type... value)Creates a matcher that matches none of the given types asTypeDescriptions by theObject.equals(Object)method.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. ofSort(TypeDefinition.Sort sort)Matches generic type descriptions of the given sort.static <T extends TypeDefinition>
ElementMatcher.Junction<T>ElementMatchers. ofSort(ElementMatcher<? super TypeDefinition.Sort> matcher)Matches generic type descriptions of the given sort.Methods in net.bytebuddy.matcher with parameters of type TypeDefinition Modifier and Type Method Description private booleanMethodOverrideMatcher. matches(MethodDescription target, TypeDefinition typeDefinition)Checks if a type declares a method with the same signature astarget.static <T extends MethodDescription>
ElementMatcher.Junction<T>ElementMatchers. takesGenericArguments(TypeDefinition... type)Matches a method description that takes the provided generic arguments.Method parameters in net.bytebuddy.matcher with type arguments of type TypeDefinition Modifier and Type Method Description private booleanMethodOverrideMatcher. matches(MethodDescription target, java.util.List<? extends TypeDefinition> typeDefinitions, java.util.Set<TypeDescription> duplicates)Matches a method against a list of types.static <T extends MethodDescription>
ElementMatcher.Junction<T>ElementMatchers. takesGenericArguments(java.util.List<? extends TypeDefinition> types)Matches a method description that takes the provided generic arguments. -
Uses of TypeDefinition in net.bytebuddy.pool
Classes in net.bytebuddy.pool that implement TypeDefinition Modifier and Type Class Description protected static classTypePool.Default.LazyTypeDescriptionA type description that looks up any referencedByteCodeElementorAnnotationDescriptionby querying a type pool at lookup time.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.LazyGenericArrayA generic type representation of a generic array.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.LazyLowerBoundWildcardA generic type representation of a lower bound wildcard.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedTypeA generic type description that represents a parameterized type without an enclosing generic owner type.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedTypeA lazy description of a parameterized type with an owner type.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveTypeA representation of a lazy primitive type.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.AnnotatedTypeVariableAn annotated representation of a formal type variable.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariableA type description that represents a type variable with bounds that are resolved lazily.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.UnresolvedTypeVariableRepresents a type variable that a type references but that does not exist.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.LazyUnboundWildcardA generic type representation of a generic unbound wildcard.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.LazyUpperBoundWildcardA generic type representation of a tokenized wildcard with an upper bound.protected static classTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedTypeRepresents a non-generic type that defines type annotations.protected classTypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyNonGenericReceiverTypeA lazy description of a non-generic receiver type.private classTypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterizedReceiverTypeA lazy description of a parameterized receiver type.protected classTypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterizedReceiverType.TypeArgumentList.AnnotatedTypeVariableRepresents a type variable as a type argument with type annotations.protected static classTypePool.Default.LazyTypeDescription.TokenizedGenericTypeA representation of a generic type that is described by aTypePool.Default.LazyTypeDescription.GenericTypeToken.protected static classTypePool.Default.LazyTypeDescription.TokenizedGenericType.MalformedA lazy description of a non-well-defined described generic type.protected classTypePool.Default.WithLazyResolution.LazyTypeDescriptionA lazy type description that resolves any property that is not the name only when requested.protected static classTypePool.LazyFacade.LazyTypeDescriptionA description of a type that delegates to another type pool once a property that is not the name is resolved.Methods in net.bytebuddy.pool with parameters of type TypeDefinition Modifier and Type Method Description AnnotationValue<U,V>TypePool.Default.LazyTypeDescription.LazyAnnotationValue. filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)Filters this annotation value as a valid value of the provided property. -
Uses of TypeDefinition in net.bytebuddy.utility
Constructors in net.bytebuddy.utility with parameters of type TypeDefinition Constructor Description JavaType(java.lang.String typeName, int modifiers, TypeDefinition superClass, TypeDefinition... anInterface)Creates a new java type representation.
-