Package net.bytebuddy.utility
This package contains utility classes for common use within any Byte Buddy logic.
-
Interface Summary Interface Description AsmClassReader A facade for creating a class reader that acceptsClassVisitorinstances and reader flags.AsmClassReader.Factory A factory to create aAsmClassReader.AsmClassReader.ForClassFileApi.JdkClassReader A dispatcher to interact withcodes.rafael.asmjdkbridge.JdkClassReader.AsmClassWriter A facade for creating aClassVisitorthat writes a class file.AsmClassWriter.Factory A factory for creating anAsmClassWriter.AsmClassWriter.ForClassFileApi.JdkClassWriter An API to interact withcodes.rafael.asmjdkbridge.JdkClassWriter.ConstantValue Represents a value that can be represented as a constant expression or constant pool value.FileSystem.ForNio2CapableVm.Dispatcher A dispatcher to resolve aFileto ajava.nio.file.Path.FileSystem.ForNio2CapableVm.Files A dispatcher to access thejava.nio.file.FilesAPI.FileSystem.ForNio2CapableVm.StandardCopyOption A dispatcher to interact withjava.nio.file.StandardCopyOption.Invoker An invoker is a deliberate indirection to wrap indirect calls.JavaConstant Represents a constant-pool constant within a Java class file.JavaConstant.MethodHandle.MethodHandleInfo A dispatcher to interact withjava.lang.invoke.MethodHandleInfo.JavaConstant.MethodHandle.MethodHandles A dispatcher to interact withjava.lang.invoke.MethodHandles.JavaConstant.MethodHandle.MethodHandles.Lookup A dispatcher to interact withjava.lang.invoke.MethodHandles$Lookup.JavaConstant.MethodHandle.MethodType A dispatcher to interact withjava.lang.invoke.MethodType.JavaConstant.MethodType.Dispatcher A dispatcher for extracting information from ajava.lang.invoke.MethodTypeinstance.JavaConstant.Simple.Dispatcher A dispatcher to representjava.lang.constant.ConstantDesc.JavaConstant.Simple.Dispatcher.OfClassDesc A dispatcher to representjava.lang.constant.ClassDesc.JavaConstant.Simple.Dispatcher.OfDirectMethodHandleDesc A dispatcher to representjava.lang.constant.DirectMethodHandleDesc.JavaConstant.Simple.Dispatcher.OfDirectMethodHandleDesc.ForKind A dispatcher to representjava.lang.constant.DirectMethodHandleDesc$Kind.JavaConstant.Simple.Dispatcher.OfDynamicConstantDesc A dispatcher to representjava.lang.constant.DynamicConstantDesc.JavaConstant.Simple.Dispatcher.OfMethodHandleDesc A dispatcher to representjava.lang.constant.MethodHandleDesc.JavaConstant.Simple.Dispatcher.OfMethodTypeDesc A dispatcher to representjava.lang.constant.MethodTypeDesc.JavaConstant.Visitor<T> A visitor to resolve aJavaConstantbased on its implementation.JavaModule.Module A proxy for interacting withjava.lang.Module.JavaModule.Resolver A proxy for resolving aClass'sjava.lang.Module.QueueFactory.Dispatcher A dispatcher for creating anjava.util.ArrayDeque. -
Class Summary Class Description AsmClassReader.ForAsm A class reader for ASM's ownClassReader.AsmClassReader.ForClassFileApi A class reader that is based upon the Class File API.AsmClassWriter.Factory.Default.NonRetainingAsmClassReader A class reader that does not retain a compatibleAsmClassWriterimplementation.AsmClassWriter.Factory.Suppressing A class writer factory that suppresses any class reader implementation that might be provided upon constructing a class writer.AsmClassWriter.ForAsm Am implementation that uses ASM's internalClassWriter.AsmClassWriter.ForClassFileApi A Class File API-based implementation for a class writer.AsmClassWriter.FrameComputingClassWriter A class writer that piggy-backs on Byte Buddy'sTypePoolto avoid class loading or look-up errors when redefining a class.AsmClassWriter.SuperClassResolvingJdkClassWriter A pseudo-JDK class writer that resolves super classes using aTypePool, to pass in the constructor.CompoundList Creates a list representation of two lists as a single, compound list.ConstantValue.Simple A simple representation of a constant value.FileSystem A dispatcher to interact with the file system.FileSystem.ForLegacyVm A file system representation for a VM that does not support NIO2.FileSystem.ForNio2CapableVm A file system representation for a VM that does support NIO2.JavaConstant.Dynamic Represents a dynamically resolved constant pool entry of a class file.JavaConstant.MethodHandle Represents ajava.lang.invoke.MethodHandleobject.JavaConstant.MethodType Represents ajava.lang.invoke.MethodTypeobject.JavaConstant.Simple<T> Represents a simple Java constant, either a primitive constant, aStringor aClass.JavaConstant.Simple.OfTrivialValue<S> Represents a trivial constant value that represents itself.JavaConstant.Simple.OfTrivialValue.ForDouble JavaConstant.Simple.OfTrivialValue.ForFloat JavaConstant.Simple.OfTrivialValue.ForInteger JavaConstant.Simple.OfTrivialValue.ForLong JavaConstant.Simple.OfTrivialValue.ForString JavaConstant.Simple.OfTypeDescription Represents a type constant.JavaModule Type-safe representation of ajava.lang.Module.JavaType.LatentTypeWithSimpleName A latent type that resolves the simple name without considering the declaring type which is not normally available.OpenedClassReader A factory for aClassReaderthat does not apply a class file version check if thenet.bytebuddy.experimentalproperty is set.QueueFactory A factory for creating aQueue.RandomString A provider of randomizedStringvalues.StreamDrainer A utility for draining the contents of anInputStreaminto abytearray. -
Enum Summary Enum Description AnnotationComparator A comparator for guaranteeing a stable order for declaredAnnotations.AsmClassReader.Factory.Default Default implementations for factories ofAsmClassReaders.AsmClassWriter.Factory.Default Default implementations for factories ofAsmClassWriters.AsmClassWriter.Factory.Default.EmptyAsmClassReader An empty class reader for ASM that never unwraps an underlying implementation.ConstructorComparator A comparator for guaranteeing a stable order for declaredConstructors.FieldComparator A comparator for guaranteeing a stable order for declaredFields.GraalImageCode A utility that resolves Graal VM native image properties.GraalImageCode.ImageCodeContextAction A privileged action to resolve the image code via the current JVM processes input arguments, if available.JavaConstant.MethodHandle.HandleType A representation of a method handle's type.JavaConstant.Visitor.NoOp A non-operational implementation of aJavaConstant.Visitorfor aJavaConstant.JavaType Representations of Java types that do not exist in Java 6 but that have a special meaning to the JVM.MethodComparator A comparator for guaranteeing a stable order for declaredMethods.TypeComparator A comparator for guaranteeing a stable order for declaredClasss.