de.unkrig.commons.asm
Class Signature

java.lang.Object
  extended by de.unkrig.commons.asm.Signature

public final class Signature
extends java.lang.Object

Utility class for simple handling of class/method descriptors/signatures.


Method Summary
static java.lang.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.
static java.lang.String toString(java.lang.String className, java.lang.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.
static java.lang.String toString(java.lang.String methodName, java.lang.String methodDescriptor, java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toString

public static java.lang.String toString(java.lang.String className,
                                        @Nullable
                                        java.lang.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 java.lang.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 java.lang.String toString(java.lang.String methodName,
                                        java.lang.String methodDescriptor,
                                        @Nullable
                                        java.lang.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.