Class JavaTraitGenerator

java.lang.Object
codechicken.mixin.util.JavaTraitGenerator

public class JavaTraitGenerator extends Object
Handles taking a java class, and turning it into a Scala-like trait interface.

Created by covers1624 on 2/11/20.

  • Field Details

    • mixinCompiler

      protected final MixinCompiler mixinCompiler
    • cNode

      protected final org.objectweb.asm.tree.ClassNode cNode
    • sNode

      protected final org.objectweb.asm.tree.ClassNode sNode
    • tNode

      protected final org.objectweb.asm.tree.ClassNode tNode
    • staticFields

      protected List<org.objectweb.asm.tree.FieldNode> staticFields
    • instanceFields

      protected List<org.objectweb.asm.tree.FieldNode> instanceFields
    • traitFields

      protected List<FieldMixin> traitFields
    • traitMethods

      protected List<org.objectweb.asm.tree.MethodNode> traitMethods
    • supers

      protected Set<String> supers
    • mixinInfo

      protected MixinInfo mixinInfo
    • fieldNameLookup

      protected Map<String,String> fieldNameLookup
    • methodSigLookup

      protected Map<String,org.objectweb.asm.tree.MethodNode> methodSigLookup
  • Constructor Details

    • JavaTraitGenerator

      public JavaTraitGenerator(MixinCompiler mixinCompiler, org.objectweb.asm.tree.ClassNode cNode)
  • Method Details

    • checkNode

      protected void checkNode()
    • operate

      protected MixinInfo operate()
    • preCheckNode

      protected void preCheckNode()
    • beforeTransform

      protected void beforeTransform()
    • getStaticNode

      @Nullable public @Nullable org.objectweb.asm.tree.ClassNode getStaticNode()
    • getTraitNode

      public org.objectweb.asm.tree.ClassNode getTraitNode()
    • getMixinInfo

      public MixinInfo getMixinInfo()