Package 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. The build tools use it at build time, the cloner agent when classes are loaded. Depends only on the JDK and on the package bytecode, the build tools contain a copy of it. Internal, not exported.
  • Class
    Description
    Reading of class files on JDK 8.
    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.
    What the enhancement needs to know about a class: its kind, superclass, interfaces and whether it already has a copy constructor.
    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.
    Adds a copy constructor to a class file, see io.github.sugarcubes.cloner.generation.CopyConstructors for its contract.
    Result of enhancing a class file.
    Result of enhancing a class file.
    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.