Package codechicken.mixin.scala
Class MixinScalaLanguageSupport
java.lang.Object
codechicken.mixin.scala.MixinScalaLanguageSupport
- All Implemented Interfaces:
MixinLanguageSupport
Created by covers1624 on 19/1/24.
-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.mixin.api.MixinLanguageSupport
MixinLanguageSupport.JavaMixinLanguageSupport, MixinLanguageSupport.LanguageName, MixinLanguageSupport.SortingIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildMixinTrait(org.objectweb.asm.tree.ClassNode cNode) Tries to build aMixinInfofor the givenClassNode.obtainInfo(org.objectweb.asm.tree.ClassNode cNode) Tries to load aClassInfofor the givenClassNode.
-
Constructor Details
-
MixinScalaLanguageSupport
-
-
Method Details
-
obtainInfo
Description copied from interface:MixinLanguageSupportTries to load aClassInfofor the givenClassNode. Custom implementations shouldn't be greedy, only load aClassInfoif you know for certain that you need to. I.e:MixinScalaLanguageSupport, only loads aScalaClassInfoif the class has a ScalaSignature Annotation, and is a Scala trait class.- Specified by:
obtainInfoin interfaceMixinLanguageSupport- Parameters:
cNode- The ClassNode.- Returns:
- The ClassInfo.
-
buildMixinTrait
Description copied from interface:MixinLanguageSupportTries to build aMixinInfofor the givenClassNode. as withMixinLanguageSupport.obtainInfo(org.objectweb.asm.tree.ClassNode), only load MixinInfos if you know for certain that you need to. I.e:MixinScalaLanguageSupport, will only load a MixinInfo for the class, ifMixinCompiler.getClassInfo(ClassNode)resolves to aScalaClassInfo.- Specified by:
buildMixinTraitin interfaceMixinLanguageSupport- Parameters:
cNode- The ClassNode.- Returns:
- The MixinInfo.
-