Class MixinMatchers

java.lang.Object
me.tamkungz.nilkit.tooling.bytebuddy.MixinMatchers

public final class MixinMatchers extends Object
Small matcher vocabulary for code that is conceptually ported from Mixin. Raw Byte Buddy matchers can always be used instead.
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription>
     
    static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription>
    descriptor(String descriptor)
    Matches a method/constructor by exact JVM descriptor, e.g.
    static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription>
    method(String name)
     
    static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription>
    method(String name, String descriptor)
     
    static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.type.TypeDescription>
    type(String binaryName)
     
    static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • type

      public static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.type.TypeDescription> type(String binaryName)
    • method

      public static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription> method(String name)
    • constructor

      public static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription> constructor()
    • typeInitializer

      public static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription> typeInitializer()
    • descriptor

      public static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription> descriptor(String descriptor)
      Matches a method/constructor by exact JVM descriptor, e.g. (Ljava/lang/String;)V.
    • method

      public static net.bytebuddy.matcher.ElementMatcher.Junction<net.bytebuddy.description.method.MethodDescription> method(String name, String descriptor)