Index

A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

ABSTRACT - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_ABSTRACT.
AccessFlags - Class in io.github.sugarcubes.cloner.bytecode
Access flags of class files (JVMS 4.1, 4.5, 4.6, 4.7.6), the same for every engine.
adapter(Field) - Method in class io.github.sugarcubes.cloner.spi.FieldsModel
Creates an adapter which reads and writes the field.
addHolder(Class<?>) - Method in exception io.github.sugarcubes.cloner.UncopyableObjectException
Adds the class of an object holding the uncopyable one, farther than the added before.
addMembers(byte[], List<FieldSpec>, List<MethodSpec>) - Method in class io.github.sugarcubes.cloner.bytecode.AsmBytecodeBackend
 
addMembers(byte[], List<FieldSpec>, List<MethodSpec>) - Method in interface io.github.sugarcubes.cloner.bytecode.BytecodeBackend
Adds fields and methods to the class file, the rest of it stays as is.
afterCopy(Callable<?>) - Method in interface io.github.sugarcubes.cloner.CopyContext
Registers a task which is invoked when the whole object graph is copied, e.g.
all() - Static method in class io.github.sugarcubes.cloner.Predicates
Always true predicate.
allocate(T) - Method in class io.github.sugarcubes.cloner.TwoPhaseObjectCopier
The first phase of copying.
allocation(Allocation...) - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Adds mechanisms creating instances without constructors.
Allocation - Enum Class in io.github.sugarcubes.cloner
Mechanisms creating instances without calling constructors, see ToolsetBuilder.allocation(Allocation...).
allocator(InstanceAllocatorFactory) - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Adds a custom instance allocator factory, which must not call constructors.
allocators(InstanceAllocatorFactory...) - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Adds custom instance allocator factories, which must not call constructors.
ALREADY_ENHANCED - Enum constant in enum class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Status
The class already has the copy constructor.
annotatedWith(Class<A>) - Static method in class io.github.sugarcubes.cloner.Predicates
Predicate which test an element is annotated with provided annotation.
annotatedWithAny(Class<A>, Class<A>...) - Static method in class io.github.sugarcubes.cloner.Predicates
Predicate which test an element is annotated with any of provided annotations.
ANNOTATION - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_ANNOTATION.
applyToSubtypes() - Element in annotation interface io.github.sugarcubes.cloner.TypePolicy
Apply the action to subtypes.
AsmBytecodeBackend - Class in io.github.sugarcubes.cloner.bytecode
Backend on the ASM library; loading this class needs ASM, so its availability is checked without touching this class.
AsmBytecodeBackend() - Constructor for class io.github.sugarcubes.cloner.bytecode.AsmBytecodeBackend
 

B

bind(CodeLabel) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Binds the label to the current position.
BREADTH_FIRST - Enum constant in enum class io.github.sugarcubes.cloner.TraversalAlgorithm
Breadth first.
build() - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Creates an instance of the cloner on the basis of the configuration.
build() - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Creates the toolset, fails with ClonerException if a chosen mechanism is not available.
builder() - Static method in class io.github.sugarcubes.cloner.Cloners
Returns a new instance of ReflectionClonerBuilder.
builder() - Static method in class io.github.sugarcubes.cloner.Toolsets
Creates a builder for a custom toolset.
BytecodeBackend - Interface in io.github.sugarcubes.cloner.bytecode
Engine of class files: the ClassFile API of JDK 24+ or ASM.

C

canRead(byte[]) - Method in class io.github.sugarcubes.cloner.bytecode.AsmBytecodeBackend
 
canRead(byte[]) - Method in interface io.github.sugarcubes.cloner.bytecode.BytecodeBackend
Tells whether the engine reads the class file: a newer version than the engine knows cannot be read.
checkCast(String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Checks the type of the reference on the stack.
CLASS_KIND - Static variable in class io.github.sugarcubes.cloner.enhancement.LanguageInfo
Kind of kotlin.Metadata for classes, the default value of k.
ClassFiles - Class in io.github.sugarcubes.cloner.enhancement
Reading of class files on JDK 8.
ClassHierarchy - Class in io.github.sugarcubes.cloner.enhancement
Classes as the build tools or the cloner agent see them: which classes get copy constructors in this enhancement (the classes of a build, or the classes which a class loader loads) and which superclasses have them.
ClassHierarchy(ClassMasks) - Constructor for class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Constructor.
ClassInfo - Class in io.github.sugarcubes.cloner.enhancement
What the enhancement needs to know about a class: its kind, superclass, interfaces and whether it already has a copy constructor.
ClassInfo(String, int, String, List<String>, boolean, boolean) - Constructor for class io.github.sugarcubes.cloner.enhancement.ClassInfo
Constructor.
ClassInfo(String, int, String, List<String>, boolean, boolean, LanguageInfo) - Constructor for class io.github.sugarcubes.cloner.enhancement.ClassInfo
Constructor.
ClassMasks - Class in io.github.sugarcubes.cloner.enhancement
Classes which get copy constructors, listed by masks in the resources "META-INF/sugar-cubes-cloner/copy-constructors": a project lists its own classes, the build tools add copy constructors to them at build time, the cloner agent when they are loaded.
ClassStructure - Class in io.github.sugarcubes.cloner.bytecode
Structure of a class file read by a BytecodeBackend: what the cloner needs to decide about a class and to add members to it, without the code of its methods.
ClassStructure(int, int, String, String, List<String>, List<ClassStructure.Member>, List<ClassStructure.Member>, List<ClassStructure.InnerClass>, Map<String, Map<String, Object>>) - Constructor for class io.github.sugarcubes.cloner.bytecode.ClassStructure
Creates the structure.
ClassStructure.InnerClass - Class in io.github.sugarcubes.cloner.bytecode
Entry of the InnerClasses attribute.
ClassStructure.Member - Class in io.github.sugarcubes.cloner.bytecode
Field or method.
clear(T) - Method in interface io.github.sugarcubes.cloner.spi.ContainerModel
Removes all the elements, keeping the configuration of the container.
CLEAR - Enum constant in enum class io.github.sugarcubes.cloner.CopyAction
The clone gets null; a primitive field gets its default value, 0 or false.
clone(Object, Object) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers clone for the object.
clone(T) - Method in interface io.github.sugarcubes.cloner.Cloner
Creates a deep clone of the object.
clone(T) - Static method in class io.github.sugarcubes.cloner.Cloners
Clones object using Cloners.defaults() cloner.
CLONEABLE - Static variable in interface io.github.sugarcubes.cloner.ObjectCopier
Singleton instance of CloneableCopier.
Cloner - Interface in io.github.sugarcubes.cloner
Cloner interface.
ClonerException - Exception in io.github.sugarcubes.cloner
Generic cloner exception.
ClonerException(String) - Constructor for exception io.github.sugarcubes.cloner.ClonerException
Constructor with message.
ClonerException(String, Throwable) - Constructor for exception io.github.sugarcubes.cloner.ClonerException
Constructor with message and cause.
ClonerException(Throwable) - Constructor for exception io.github.sugarcubes.cloner.ClonerException
Constructor with cause.
Cloners - Class in io.github.sugarcubes.cloner
Factory for creating different Cloners.
CloningMode - Enum Class in io.github.sugarcubes.cloner
Cloner work mode.
CodeEmitter - Interface in io.github.sugarcubes.cloner.bytecode
Instructions of a method body, the subset the copier template needs.
CodeLabel - Interface in io.github.sugarcubes.cloner.bytecode
Position in the code of a method, a target of jumps; created by CodeEmitter.newLabel() of the same backend.
compound(CopyPolicy<I>...) - Static method in interface io.github.sugarcubes.cloner.CopyPolicy
Returns compound or single policy depending on list size.
compound(List<CopyPolicy<I>>) - Static method in interface io.github.sugarcubes.cloner.CopyPolicy
Returns compound or single policy depending on list size.
conservative() - Static method in class io.github.sugarcubes.cloner.Toolsets
Conservative toolset, the same for every JVM: reflection, with Unsafe only for fields which reflection cannot access (packages not opened to the cloner); instances are created without constructors by sun.reflect.ReflectionFactory, or by Unsafe for classes which it refuses (classes which are not serializable on JDK 28+) and if the runtime has no jdk.unsupported module, constructors are the last fallback; packages are not opened.
constant(CopyAction) - Static method in interface io.github.sugarcubes.cloner.CopyPolicy
Returns copy policy which always returns the same action.
constructorFallback(InstanceAllocatorFactory) - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Sets instance allocator factory for types which no allocator supports.
ContainerModel<T> - Interface in io.github.sugarcubes.cloner.spi
Low-level model of a container: a collection or a map.
containsKey(T, Object) - Method in interface io.github.sugarcubes.cloner.spi.ContainerModel
Tells whether the container finds the key (a set element or a map key).
copier(Class<?>, ObjectCopier<?>) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers copier for type.
copiers(Map<Class<?>, ObjectCopier<?>>) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers set of copiers.
copy(CopyContext) - Method in interface io.github.sugarcubes.cloner.Copyable
Creates deep copy of this object.
copy(T) - Method in interface io.github.sugarcubes.cloner.CopyContext
Returns the instant copy of the object.
copy(T, CopyContext) - Method in class io.github.sugarcubes.cloner.NoopCopier
 
copy(T, CopyContext) - Method in class io.github.sugarcubes.cloner.NullCopier
 
copy(T, CopyContext) - Method in interface io.github.sugarcubes.cloner.ObjectCopier
Creates a copy of the original object.
copy(T, CopyContext) - Method in class io.github.sugarcubes.cloner.TwoPhaseObjectCopier
 
copy(T, CopyContext.CloneSetter<? super T>) - Method in interface io.github.sugarcubes.cloner.CopyContext
Copies the object and passes the clone to the setter, now or later, see CopyContext.copyNow(Object).
Copyable<T> - Interface in io.github.sugarcubes.cloner
An interface for classes which know how to clone themselves.
COPYABLE - Static variable in interface io.github.sugarcubes.cloner.ObjectCopier
Singleton instance of CopyableCopier.
CopyAction - Enum Class in io.github.sugarcubes.cloner
Actions which can be applied to objects, types and fields: what the clone gets instead of the original value.
copyComplete(T) - Method in interface io.github.sugarcubes.cloner.CopyContext
Returns the copy of the object with its own state already copied (for a two-phase copier the second phase is done, its referenced objects may still be incomplete).
CopyConstructorEnhancer - Class in io.github.sugarcubes.cloner.enhancement
Adds a copy constructor to a class file, see io.github.sugarcubes.cloner.generation.CopyConstructors for its contract.
CopyConstructorEnhancer.Result - Class in io.github.sugarcubes.cloner.enhancement
Result of enhancing a class file.
CopyConstructorEnhancer.Status - Enum Class in io.github.sugarcubes.cloner.enhancement
Result of enhancing a class file.
copyConstructors(boolean) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Enables or disables copy constructors which the build tools of the cloner add to classes (enabled by default).
CopyContext - Interface in io.github.sugarcubes.cloner
Context of the single cloning process.
CopyContext.CloneSetter<T> - Interface in io.github.sugarcubes.cloner
Receives a clone.
copyNow(Object) - Method in interface io.github.sugarcubes.cloner.CopyContext
Copies the object if its clone exists or can be created now.
CopyPolicy<I> - Interface in io.github.sugarcubes.cloner
Copy policy interface.
create(Object[]) - Method in interface io.github.sugarcubes.cloner.spi.ValuesModel
Creates an instance from the values of the components.
create(T) - Method in interface io.github.sugarcubes.cloner.spi.ContainerModel
Creates an empty container of the same kind as the original: the same class and configuration, e.g.

D

declaresSerialVersionUid() - Method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Tells whether the class declares serialVersionUID.
deepCopy(T, T, CopyContext) - Method in class io.github.sugarcubes.cloner.TwoPhaseObjectCopier
The second phase of copying, copies the inner state from the original object into the clone.
DEFAULT - Enum constant in enum class io.github.sugarcubes.cloner.CopyAction
Clone the object, unless it is immutable or shared by default.
DEFAULT - Static variable in interface io.github.sugarcubes.cloner.CopyPolicy
Default copy policy.
defaultPolicy() - Static method in interface io.github.sugarcubes.cloner.CopyPolicy
Returns default copy policy.
defaults() - Static method in class io.github.sugarcubes.cloner.Cloners
Returns an instance of Cloner with default settings: sequential mode, Toolsets.defaults().
defaults() - Static method in class io.github.sugarcubes.cloner.Toolsets
Default toolset: the fastest mechanisms which the running JVM allows, chosen once per JVM.
DEPTH_FIRST - Enum constant in enum class io.github.sugarcubes.cloner.TraversalAlgorithm
Depth first.

E

elements(T) - Method in interface io.github.sugarcubes.cloner.spi.ContainerModel
Lists the elements of the container in iteration order; for a map keys and values in pairs.
emit(CodeEmitter) - Method in class io.github.sugarcubes.cloner.bytecode.MethodSpec
Emits the instructions of the method.
enhance(byte[], ClassHierarchy, BytecodeBackend) - Static method in class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer
Adds the copy constructor to the class file if the class matches the masks and can get it.
ENHANCED - Enum constant in enum class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Status
The copy constructor is added.
ENUM - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_ENUM.
equal(T) - Static method in class io.github.sugarcubes.cloner.Predicates
Predicate which test an object is equal to reference value.
executor(ExecutorService) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Enables parallel mode with given executor service.

F

fieldAccess(FieldAccess...) - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Adds mechanisms reading and writing fields.
FieldAccess - Enum Class in io.github.sugarcubes.cloner
Mechanisms reading and writing fields, see ToolsetBuilder.fieldAccess(FieldAccess...).
fieldAction(Class<?>, String, CopyAction) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers action for field.
fieldAction(Field, CopyAction) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers action for field.
fieldAction(Predicate<Field>, CopyAction) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers action for field predicate.
fieldAdapter(FieldAdapterFactory) - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Adds a custom field adapter factory.
FieldAdapter - Interface in io.github.sugarcubes.cloner.spi
Reads and writes one field of objects, created for the field by a FieldAdapterFactory.
FieldAdapterFactory - Interface in io.github.sugarcubes.cloner.spi
Factory of field adapters.
fieldAdapters(FieldAdapterFactory...) - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Adds custom field adapter factories.
fieldOf(int) - Method in interface io.github.sugarcubes.cloner.spi.ValuesModel
Returns the field which holds the value of the component, so the field actions and values of the cloner apply to the component: e.g.
fieldPolicy(CopyPolicy<Field>) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Sets field copy policy.
FieldPolicy - Annotation Interface in io.github.sugarcubes.cloner
Annotation for applying CopyAction to fields.
FieldsModel<T> - Class in io.github.sugarcubes.cloner.spi
Low-level model of a type whose instances are created without constructor and whose state is its fields.
FieldsModel(Class<T>, Reflection, InstanceAllocatorFactory, FieldAdapterFactory) - Constructor for class io.github.sugarcubes.cloner.spi.FieldsModel
Creates the model of the type.
FieldSpec - Class in io.github.sugarcubes.cloner.bytecode
Field of a generated class, or added to a class.
FieldSpec(int, String, String) - Constructor for class io.github.sugarcubes.cloner.bytecode.FieldSpec
Creates the field.
FieldSpec(int, String, String, Object) - Constructor for class io.github.sugarcubes.cloner.bytecode.FieldSpec
Creates a static final field with a constant value (the ConstantValue attribute).
fieldValue(Class<?>, String, Supplier<?>) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers the value which clones get in the field, see ReflectionClonerBuilder.fieldValue(Field, Supplier).
fieldValue(Field, Supplier<?>) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers the value which clones get in the field instead of the copy of the original value.
fieldValue(Predicate<Field>, Supplier<?>) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers the value which clones get in the fields matching the predicate, see ReflectionClonerBuilder.fieldValue(Field, Supplier).
fill(T, Object[]) - Method in interface io.github.sugarcubes.cloner.spi.ContainerModel
Fills the empty container with the elements, in the order of ContainerModel.elements(Object).
FINAL - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_FINAL.
find(String) - Method in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Finds the class.

G

generatedCopiers(boolean) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Enables or disables generated copiers.
getAccess() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Returns the access flags of the class file.
getAccess() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure.InnerClass
Returns the access flags declared in the source.
getAccess() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure.Member
Returns the access flags.
getAccess() - Method in class io.github.sugarcubes.cloner.bytecode.FieldSpec
Returns the access flags.
getAccess() - Method in class io.github.sugarcubes.cloner.bytecode.MethodSpec
Returns the access flags.
getAccess() - Method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Returns the access flags.
getAction(I) - Method in interface io.github.sugarcubes.cloner.CopyPolicy
Returns action to apply to an input, which may be type, field or something else.
getAllocator() - Method in class io.github.sugarcubes.cloner.spi.FieldsModel
Returns allocator of instances.
getAllocatorFactory() - Method in class io.github.sugarcubes.cloner.Toolset
Returns instance allocator factory.
getAnnotation(String) - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Returns the elements of a class annotation visible at runtime.
getBoolean(Object) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Reads the value of the boolean field.
getByte(Object) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Reads the value of the byte field.
getBytes() - Method in class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Result
Returns the enhanced class file.
getChar(Object) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Reads the value of the char field.
getConstantValue() - Method in class io.github.sugarcubes.cloner.bytecode.FieldSpec
Returns the constant value.
getDeclaredConstructor(Class<T>, Class<?>...) - Method in interface io.github.sugarcubes.cloner.spi.Reflection
Returns accessible constructor.
getDeclaredField(Class<?>, String) - Method in interface io.github.sugarcubes.cloner.spi.Reflection
Returns accessible field.
getDeclaredFields(Class<?>) - Method in interface io.github.sugarcubes.cloner.spi.Reflection
Returns accessible declared fields of the class.
getDeclaredMethod(Class<?>, String, Class<?>...) - Method in interface io.github.sugarcubes.cloner.spi.Reflection
Returns accessible method.
getDescriptor() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure.Member
Returns the descriptor.
getDescriptor() - Method in class io.github.sugarcubes.cloner.bytecode.FieldSpec
Returns the field descriptor.
getDescriptor() - Method in class io.github.sugarcubes.cloner.bytecode.MethodSpec
Returns the method descriptor.
getDouble(Object) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Reads the value of the double field.
getField(String, String, String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Replaces the object on the stack with the value of its field.
getFieldAdapterFactory() - Method in class io.github.sugarcubes.cloner.Toolset
Returns field adapter factory.
getFields() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Returns the fields.
getFields() - Method in class io.github.sugarcubes.cloner.spi.FieldsModel
Returns instance fields declared by the type itself, without fields of super types.
getFloat(Object) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Reads the value of the float field.
getInnerClasses() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Returns the entries of the InnerClasses attribute.
getInt(Object) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Reads the value of the int field.
getInterfaces() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Returns the internal names of the interfaces.
getInterfaces() - Method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Returns the internal names of the interfaces.
getKind() - Method in class io.github.sugarcubes.cloner.enhancement.LanguageInfo
Returns the kind of kotlin.Metadata: 1 for classes, including objects, other values for file facades and synthetic classes, which have no instances.
getLanguage() - Method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Returns what the class file tells about Kotlin and Scala.
getLong(Object) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Reads the value of the long field.
getMajorVersion() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Returns the major version of the class file.
getMessage() - Method in exception io.github.sugarcubes.cloner.UncopyableObjectException
 
getMethods() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Returns the methods and constructors.
getName() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Returns the internal name.
getName() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure.InnerClass
Returns the internal name of the inner class.
getName() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure.Member
Returns the name.
getName() - Method in class io.github.sugarcubes.cloner.bytecode.FieldSpec
Returns the field name.
getName() - Method in class io.github.sugarcubes.cloner.bytecode.MethodSpec
Returns the method name.
getName() - Method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Returns the internal name.
getObject(Object) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Reads the value of the reference field.
getOuter() - Method in class io.github.sugarcubes.cloner.enhancement.LanguageInfo
Returns the enclosing class.
getOuterName() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure.InnerClass
Returns the internal name of the outer class.
getProblem() - Method in class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Result
Returns the problem of a skipped class.
getReflection() - Method in class io.github.sugarcubes.cloner.Toolset
Returns reflection.
getShort(Object) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Reads the value of the short field.
getStatic(String, String, String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Pushes the value of a static field.
getStatus() - Method in class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Result
Returns the status.
getSuperName() - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Returns the internal name of the superclass.
getSuperName() - Method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Returns the internal name of the superclass.
getType() - Method in class io.github.sugarcubes.cloner.spi.FieldsModel
Returns the type.
getType() - Method in interface io.github.sugarcubes.cloner.spi.ValuesModel
Returns the type.
getType() - Method in exception io.github.sugarcubes.cloner.UncopyableObjectException
Returns the type of the uncopyable object.

H

hasCopyConstructor() - Method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Tells whether the class has a copy constructor.
hasCopyConstructor(String) - Method in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Tells whether the class has a copy constructor or gets it in this enhancement.
hashesKeys() - Method in interface io.github.sugarcubes.cloner.spi.ContainerModel
Tells whether the container uses hash codes of its keys (set elements or map keys).
hashesKeys() - Method in interface io.github.sugarcubes.cloner.spi.ValuesModel
Tells whether the values are hashed by the created instance (elements of a set, keys of a map).
holdsConstantOf(String) - Method in class io.github.sugarcubes.cloner.enhancement.LanguageInfo
Tells whether the class has a static final field of the type: the type is its companion object.
holdsItself() - Method in class io.github.sugarcubes.cloner.enhancement.LanguageInfo
Tells whether the class holds its instance in public static final INSTANCE: a Kotlin object, if the class is a Kotlin one.

I

ifNull(CodeLabel) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Jumps to the label if the reference on the stack is null.
IGNORED - Enum constant in enum class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Status
The class does not match the masks, is not a class (interface, enum, annotation, descriptor) or is never copied by the cloner (e.g.
InnerClass(String, String, int) - Constructor for class io.github.sugarcubes.cloner.bytecode.ClassStructure.InnerClass
Creates the entry.
InstanceAllocator<T> - Interface in io.github.sugarcubes.cloner.spi
Factory for objects of the specific type.
InstanceAllocatorFactory - Interface in io.github.sugarcubes.cloner.spi
Instance allocator factory interface.
INSTRUMENTATION - Enum constant in enum class io.github.sugarcubes.cloner.ModuleOpening
Opens packages with Instrumentation of the cloner agent, the JVM must be started with -javaagent pointing to the cloner jar.
INTERFACE - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_INTERFACE.
invokesConstructor() - Method in interface io.github.sugarcubes.cloner.spi.InstanceAllocatorFactory
Tells whether allocators of this factory call a constructor of the type.
invokeSpecial(String, String, String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Invokes a constructor or a private or super method.
invokeStatic(String, String, String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Invokes a static method of a class.
invokeVirtual(String, String, String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Invokes a virtual method.
io.github.sugarcubes.cloner - module io.github.sugarcubes.cloner
Java Reflection Cloner library module.
io.github.sugarcubes.cloner - package io.github.sugarcubes.cloner
Java deep cloning library.
io.github.sugarcubes.cloner.bytecode - package io.github.sugarcubes.cloner.bytecode
Class files through an engine: the ClassFile API of JDK 24+ or ASM.
io.github.sugarcubes.cloner.enhancement - package io.github.sugarcubes.cloner.enhancement
Copy constructors added to class files: CopyConstructorEnhancer adds them to the classes listed by ClassMasks, ClassHierarchy decides which classes can get them.
io.github.sugarcubes.cloner.spi - package io.github.sugarcubes.cloner.spi
Low-level extension points of the cloner: how instances are created, how fields are read and written, how types are modeled.
is(int) - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure
Tells whether the class has the access flag.
is(int) - Method in class io.github.sugarcubes.cloner.bytecode.ClassStructure.Member
Tells whether the member has the access flag.
is(int) - Method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Tells whether the flag is set.
isAvailable(Allocation) - Static method in class io.github.sugarcubes.cloner.Toolsets
Tells whether the instance allocation mechanism is available in the running JVM.
isAvailable(FieldAccess) - Static method in class io.github.sugarcubes.cloner.Toolsets
Tells whether the field access mechanism is available in the running JVM.
isAvailable(ModuleOpening) - Static method in class io.github.sugarcubes.cloner.Toolsets
Tells whether the module opening mechanism is available in the running JVM.
isClass(ClassInfo) - Static method in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Tells whether the class is a class, the only kind which gets copy constructors.
isComplete(Object) - Method in interface io.github.sugarcubes.cloner.CopyContext
Tells whether the clone of the object has its own state copied.
isKotlin() - Method in class io.github.sugarcubes.cloner.enhancement.LanguageInfo
Tells whether the class file carries kotlin.Metadata.
isLocal(String) - Method in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Tells whether the class is enhanced: compiled in this build, or loaded after the agent started.
isMap() - Method in interface io.github.sugarcubes.cloner.spi.ContainerModel
Tells whether the container is a map: its elements are keys and values in pairs.
isMap() - Method in interface io.github.sugarcubes.cloner.spi.ValuesModel
Tells whether the values are keys and values of a map in pairs.
isScalaObject() - Method in class io.github.sugarcubes.cloner.enhancement.LanguageInfo
Tells whether the class holds its instance in static final MODULE$: a Scala object.
isSerializable(String) - Method in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Tells whether instances of the class are serializable.
isTarget(String) - Method in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Tells whether the class matches the masks.

L

LanguageInfo - Class in io.github.sugarcubes.cloner.enhancement
What a class file tells about Kotlin and Scala: the kind of the class from kotlin.Metadata, the static final fields holding instances of classes, among them the instance of a Kotlin object (INSTANCE) or of a Scala object (MODULE$), and the enclosing class.
loadClass(String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Pushes a class constant.
loadInt(int) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Pushes an int from a local variable.
loadReference(int) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Pushes a reference from a local variable.
loadString(String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Pushes a string constant.

M

majorVersion(byte[]) - Static method in class io.github.sugarcubes.cloner.enhancement.ClassFiles
Returns the major version of a class file.
makeAccessible(T) - Method in interface io.github.sugarcubes.cloner.spi.Reflection
Makes object accessible.
matches(String) - Method in class io.github.sugarcubes.cloner.enhancement.ClassMasks
Tells whether the name matches some mask and no exclusion.
Member(int, String, String) - Constructor for class io.github.sugarcubes.cloner.bytecode.ClassStructure.Member
Creates the member.
MethodSpec - Class in io.github.sugarcubes.cloner.bytecode
Method of a generated class.
MethodSpec(int, String, String, Consumer<CodeEmitter>) - Constructor for class io.github.sugarcubes.cloner.bytecode.MethodSpec
Creates the method.
mode(CloningMode) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Sets cloning mode.
MODULE - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_MODULE of classes.
moduleOpening(ModuleOpening) - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Sets the mechanism opening packages to the cloner for reflection.
ModuleOpening - Enum Class in io.github.sugarcubes.cloner
Mechanisms opening packages of other modules to the cloner for reflection, JDK 9+; on JDK 8 there is nothing to open.

N

nameOf(int) - Method in interface io.github.sugarcubes.cloner.spi.ValuesModel
Returns the name of the component for messages.
narcissus() - Static method in class io.github.sugarcubes.cloner.Toolsets
Narcissus library for accessing fields: works for any package.
NARCISSUS - Enum constant in enum class io.github.sugarcubes.cloner.FieldAccess
Narcissus library with its native part, must be on the classpath.
NARCISSUS - Enum constant in enum class io.github.sugarcubes.cloner.ModuleOpening
Narcissus library, which must be on the classpath: makes the members the cloner uses accessible directly (JNI), without opening packages or changing modules.
NATIVE - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_NATIVE of methods.
neverCopied(String) - Method in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Tells why the cloner never copies instances of the class, so it needs no copy constructor: singletons of Kotlin (object, data object, companion object, lambda classes capturing nothing) and Scala (object, case object, cases of Scala 3 enums), meta classes of Groovy, which the cloner shares; Kotlin file facades and synthetic classes, which have no instances; jobs of Kotlin coroutines and futures of Scala, which the cloner does not copy.
newAdapter(Field) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapterFactory
Creates an adapter which reads and writes the field.
newAllocator(Class<T>) - Method in interface io.github.sugarcubes.cloner.spi.InstanceAllocatorFactory
Prepares an allocator for the type.
newInstance() - Method in interface io.github.sugarcubes.cloner.spi.InstanceAllocator
Creates an object instance.
newLabel() - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Creates a label to be bound later.
noConstructorFallback() - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Disables constructor fallback: types which no allocator supports cannot be cloned.
NONE - Enum constant in enum class io.github.sugarcubes.cloner.ModuleOpening
Packages are not opened, only those opened by the JVM options (--add-opens) are accessible.
NONE - Static variable in class io.github.sugarcubes.cloner.enhancement.ClassMasks
Matches nothing.
NONE - Static variable in class io.github.sugarcubes.cloner.enhancement.LanguageInfo
Neither a Kotlin class nor a Scala object.
NOOP - Static variable in interface io.github.sugarcubes.cloner.ObjectCopier
Singleton instance of NoopCopier.
NoopCopier<T> - Class in io.github.sugarcubes.cloner
Copier which always returns original object.
not(Predicate<T>) - Static method in class io.github.sugarcubes.cloner.Predicates
Negates predicate.
NULL - Static variable in interface io.github.sugarcubes.cloner.ObjectCopier
Singleton instance of NullCopier.
NullCopier<T> - Class in io.github.sugarcubes.cloner
Copier which always returns null.

O

OBJECT - Static variable in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Internal name of java.lang.Object.
OBJECT_ARRAY - Static variable in interface io.github.sugarcubes.cloner.ObjectCopier
Singleton instance of ObjectArrayCopier.
objectAction(Object, CopyAction) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers action for object.
ObjectCopier<T> - Interface in io.github.sugarcubes.cloner
Copier for the specific object type.
objectPolicy(CopyPolicy<Object>) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Sets object policy.
of(ClassStructure) - Static method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Returns the information of the structure of a class file.
of(ClassStructure) - Static method in class io.github.sugarcubes.cloner.enhancement.LanguageInfo
Returns the information of the structure of a class file.
of(Collection<String>) - Static method in class io.github.sugarcubes.cloner.enhancement.ClassMasks
Creates the filter from masks.
original() - Static method in interface io.github.sugarcubes.cloner.CopyPolicy
Returns copy policy which always uses originals.
ORIGINAL - Enum constant in enum class io.github.sugarcubes.cloner.CopyAction
Use the original object.
ORIGINAL - Static variable in interface io.github.sugarcubes.cloner.CopyPolicy
Copy policy which always uses originals.

P

PARALLEL - Enum constant in enum class io.github.sugarcubes.cloner.CloningMode
Several threads.
parse(URL) - Static method in class io.github.sugarcubes.cloner.enhancement.ClassMasks
Reads the masks of a resource.
PENDING - Static variable in interface io.github.sugarcubes.cloner.CopyContext
Marker returned by CopyContext.copyNow(Object) when the clone cannot be got now.
Predicates - Class in io.github.sugarcubes.cloner
PRIVATE - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_PRIVATE.
problem(String) - Method in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Explains why an enhanced class which matches the masks cannot get a copy constructor.
PROTECTED - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_PROTECTED.
PUBLIC - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_PUBLIC.
pushInt(int) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Pushes an int constant.
pushNull() - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Pushes null.
putField(String, String, String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Sets the field of the object below the value on the stack.
putStatic(String, String, String) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Sets a static field to the value on the stack.

R

read(byte[]) - Method in class io.github.sugarcubes.cloner.bytecode.AsmBytecodeBackend
 
read(byte[]) - Method in interface io.github.sugarcubes.cloner.bytecode.BytecodeBackend
Reads the structure of the class file.
read(byte[], BytecodeBackend) - Static method in class io.github.sugarcubes.cloner.enhancement.ClassInfo
Reads the information from a class file.
read(ClassLoader) - Static method in class io.github.sugarcubes.cloner.enhancement.ClassMasks
Reads the masks of all resources "META-INF/sugar-cubes-cloner/copy-constructors" which the class loader finds.
read(T) - Method in interface io.github.sugarcubes.cloner.spi.ValuesModel
Reads the values of the components.
readAll(InputStream) - Static method in class io.github.sugarcubes.cloner.enhancement.ClassFiles
Reads the stream fully, InputStream.readAllBytes() appeared in JDK 9.
RECORD - Static variable in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Internal name of java.lang.Record.
RECURSIVE - Enum constant in enum class io.github.sugarcubes.cloner.CloningMode
One thread with recursion.
reflection() - Static method in class io.github.sugarcubes.cloner.Toolsets
Reflection for fields, never Unsafe: fields of packages not opened to the cloner cannot be copied; on JDK 26+ final fields need --enable-final-field-mutation if the JVM denies their mutation.
reflection(Reflection) - Method in class io.github.sugarcubes.cloner.ToolsetBuilder
Sets custom reflection instead of the default one, which opens packages by ToolsetBuilder.moduleOpening.
Reflection - Interface in io.github.sugarcubes.cloner.spi
Reflection used by the cloner to find members and make them accessible.
REFLECTION - Enum constant in enum class io.github.sugarcubes.cloner.FieldAccess
Reflection.
REFLECTION_FACTORY - Enum constant in enum class io.github.sugarcubes.cloner.Allocation
sun.reflect.ReflectionFactory of the jdk.unsupported module, the mechanism of deserialization: needs neither Unsafe, nor opened packages, nor additional libraries.
ReflectionClonerBuilder - Class in io.github.sugarcubes.cloner
Builder for reflection cloners.
ReflectionClonerBuilder() - Constructor for class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Creates a builder.
register(T) - Method in interface io.github.sugarcubes.cloner.CopyContext
Registers clone in the context.
replaceIf(Class<? extends Throwable>, Supplier<String>) - Method in exception io.github.sugarcubes.cloner.ClonerException
If the cause has the specified type then rethrows ClonerException with another message.
RESOURCE - Static variable in class io.github.sugarcubes.cloner.enhancement.ClassMasks
Name of the resources with the masks.
returnVoid() - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Returns from a void method.

S

same(T) - Static method in class io.github.sugarcubes.cloner.Predicates
Predicate which test an object is same (==) as reference value.
SEQUENTIAL - Enum constant in enum class io.github.sugarcubes.cloner.CloningMode
One thread, no recursion.
set(T) - Method in interface io.github.sugarcubes.cloner.CopyContext.CloneSetter
Receives the clone, e.g.
setBoolean(Object, boolean) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Writes the value of the boolean field.
setByte(Object, byte) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Writes the value of the byte field.
setChar(Object, char) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Writes the value of the char field.
setDouble(Object, double) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Writes the value of the double field.
setFloat(Object, float) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Writes the value of the float field.
setInt(Object, int) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Writes the value of the int field.
setLong(Object, long) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Writes the value of the long field.
setObject(Object, T) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Writes the value of the reference field.
setShort(Object, short) - Method in interface io.github.sugarcubes.cloner.spi.FieldAdapter
Writes the value of the short field.
shallow(Class<?>) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers type to be copied in shallow mode, i.e.
singleton(Object) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers singleton, i.e.
SKIPPED - Enum constant in enum class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Status
The class matches the masks but cannot get a copy constructor, see the problem.
STATIC - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_STATIC.
storeReference(int) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Stores the reference on the stack into a local variable.
STRICT - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_STRICT of methods.
subclass(Class<?>) - Static method in class io.github.sugarcubes.cloner.Predicates
Predicate which test a class is subclass (including self) of the type.
subscribe(T, CopyContext.CloneSetter<? super T>) - Method in interface io.github.sugarcubes.cloner.CopyContext
Passes the clone of the object to the setter when it is registered, see CopyContext.copyNow(Object).
SYNCHRONIZED - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_SYNCHRONIZED of methods.
SYNTHETIC - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_SYNTHETIC.

T

tableSwitch(int, CodeLabel, CodeLabel...) - Method in interface io.github.sugarcubes.cloner.bytecode.CodeEmitter
Jumps by the int on the stack: to labels[value - low] or to the default label.
targetProblem(String) - Method in class io.github.sugarcubes.cloner.enhancement.ClassHierarchy
Explains why an enhanced class which matches the masks and is a class cannot get a copy constructor.
thenInvoke(Callable<?>) - Method in interface io.github.sugarcubes.cloner.CopyContext
Invokes task.
toolset(Toolset) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Sets toolset.
Toolset - Class in io.github.sugarcubes.cloner
Low-level tools of the reflection cloner: reflection, instance allocators and field adapters.
ToolsetBuilder - Class in io.github.sugarcubes.cloner
Builder of Toolset.
Toolsets - Class in io.github.sugarcubes.cloner
Profiles of Toolset: ready combinations of the low-level mechanisms.
toString() - Method in class io.github.sugarcubes.cloner.Toolset
Describes the chosen mechanisms, e.g.
TRANSIENT - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_TRANSIENT of fields.
traversalAlgorithm(TraversalAlgorithm) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Sets traversal algorithm for objects graph.
TraversalAlgorithm - Enum Class in io.github.sugarcubes.cloner
Object graph traversal algorithm.
TrivialCopier<T> - Interface in io.github.sugarcubes.cloner
Marker interface for trivial copiers.
tryMakeAccessible(T) - Method in interface io.github.sugarcubes.cloner.spi.Reflection
Tries to make the member accessible.
TwoPhaseObjectCopier<T> - Class in io.github.sugarcubes.cloner
Two-phase copier.
TwoPhaseObjectCopier() - Constructor for class io.github.sugarcubes.cloner.TwoPhaseObjectCopier
 
typeAction(Class<?>, CopyAction) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers action for type.
typeAction(String, CopyAction) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers action for type.
typeAction(Predicate<Class<?>>, CopyAction) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Registers action for type predicate.
TypeCopier - Annotation Interface in io.github.sugarcubes.cloner
Annotation for applying ObjectCopier to type.
typePolicy(CopyPolicy<Class<?>>) - Method in class io.github.sugarcubes.cloner.ReflectionClonerBuilder
Sets type copy policy.
TypePolicy - Annotation Interface in io.github.sugarcubes.cloner
Annotation for applying CopyAction to types.

U

UncopyableObjectException - Exception in io.github.sugarcubes.cloner
Thrown when the cloner meets a live object of the JVM or the operating system (a thread, a reference, an open file, a socket, a process, an executor) and the developer has not chosen what the clone gets: a clone cannot get its own one, and sharing the original must be chosen explicitly by CopyAction.ORIGINAL (or CopyAction.CLEAR) for the type, the field or the object, or by a copier of the type.
UncopyableObjectException(Class<?>) - Constructor for exception io.github.sugarcubes.cloner.UncopyableObjectException
Constructor.
UncopyableObjectException(Class<?>, String, Throwable) - Constructor for exception io.github.sugarcubes.cloner.UncopyableObjectException
Constructor.
unsafe() - Static method in class io.github.sugarcubes.cloner.Toolsets
Unsafe for creating instances and accessing fields: works for any package.
UNSAFE - Enum constant in enum class io.github.sugarcubes.cloner.Allocation
Unsafe.allocateInstance(), not a memory access method: the JVM does not warn about it.
UNSAFE - Enum constant in enum class io.github.sugarcubes.cloner.FieldAccess
Unsafe, works for any package.
UNSAFE - Enum constant in enum class io.github.sugarcubes.cloner.ModuleOpening
Opens packages with Unsafe.
UNSUPPORTED - Enum constant in enum class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Status
The class file has a version which the bytecode engine does not support yet.

V

value() - Element in annotation interface io.github.sugarcubes.cloner.FieldPolicy
Copy action for the field or fields.
value() - Element in annotation interface io.github.sugarcubes.cloner.TypeCopier
Copier class for the type.
value() - Element in annotation interface io.github.sugarcubes.cloner.TypePolicy
Copy action for the type.
valueOf(String) - Static method in enum class io.github.sugarcubes.cloner.Allocation
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.github.sugarcubes.cloner.CloningMode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.github.sugarcubes.cloner.CopyAction
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Status
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.github.sugarcubes.cloner.FieldAccess
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.github.sugarcubes.cloner.ModuleOpening
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.github.sugarcubes.cloner.TraversalAlgorithm
Returns the enum constant of this class with the specified name.
values() - Static method in enum class io.github.sugarcubes.cloner.Allocation
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.github.sugarcubes.cloner.CloningMode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.github.sugarcubes.cloner.CopyAction
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.github.sugarcubes.cloner.enhancement.CopyConstructorEnhancer.Status
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.github.sugarcubes.cloner.FieldAccess
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.github.sugarcubes.cloner.ModuleOpening
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.github.sugarcubes.cloner.TraversalAlgorithm
Returns an array containing the constants of this enum class, in the order they are declared.
ValuesModel<T> - Interface in io.github.sugarcubes.cloner.spi
Low-level model of a type whose instances are created from the values of their components, e.g.
VAR_HANDLE - Enum constant in enum class io.github.sugarcubes.cloner.FieldAccess
VarHandle of the trusted lookup, JDK 9+.
VOLATILE - Static variable in class io.github.sugarcubes.cloner.bytecode.AccessFlags
ACC_VOLATILE of fields.

W

write(int, String, String, List<FieldSpec>, List<MethodSpec>) - Method in class io.github.sugarcubes.cloner.bytecode.AsmBytecodeBackend
 
write(int, String, String, List<FieldSpec>, List<MethodSpec>) - Method in interface io.github.sugarcubes.cloner.bytecode.BytecodeBackend
Writes a final synthetic class.
A B C D E F G H I L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form