Class Signature


  • public final class Signature
    extends Object
    Utility class for simple handling of class/method descriptors/signatures.
    • Method Detail

      • toString

        public static String toString​(String className,
                                      @Nullable
                                      String classSignature)
        Converts a class descriptor / signature into strings like
         List<T extends java.lang.Exception>
        Notice that the result does not include the accessibility.
      • toString

        public static String toString​(org.objectweb.asm.tree.MethodNode methodNode)
        Converts an ASM method node into strings like
         meth(java.lang.String, java.util.Map)}
         <T extends java.io.IOException> meth(T, double, java.lang.List<T>)
        Notice that the result includes neither the return type nor the accessibility.
      • toString

        public static String toString​(String methodName,
                                      String methodDescriptor,
                                      @Nullable
                                      String methodSignature)
        Converts a method descriptor / signature into strings like
         meth(java.lang.String, java.util.Map)
         <T extends java.io.IOException>meth(T, double, java.lang.List<T>)
        Notice that the result includes neither the return type nor the accessibility.