Class Util


  • public class Util
    extends java.lang.Object
    The type Util.
    • Constructor Summary

      Constructors 
      Constructor Description
      Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getArgumentString​(org.objectweb.asm.Type[] arguments)
      Gets argument string.
      static java.lang.String getTypeNameFromDescriptor​(java.lang.String desc)
      extracts the class name or primitve identifier from any type descriptor.
      static java.lang.String toBase64​(byte[] b)
      To base 64 string.
      static java.lang.String toInternalClass​(java.lang.String className)
      To internal class string.
      static java.lang.String toJavaClass​(java.lang.String className)
      To java class string.
      static java.lang.String toJavaParameters​(java.lang.String parameters)
      To java parameters string.
      static java.lang.String toJavaType​(java.lang.String type)
      To java type string.
      static java.lang.String[] toNativeMethod​(java.lang.String javaMethod)
      To native method string [ ].
      static java.lang.String verboseToNativeType​(java.lang.String type)
      Verbose to native type string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • toJavaClass

        public static final java.lang.String toJavaClass​(java.lang.String className)
        To java class string.
        Parameters:
        className - the class name
        Returns:
        the string
      • toInternalClass

        public static final java.lang.String toInternalClass​(java.lang.String className)
        To internal class string.
        Parameters:
        className - the class name
        Returns:
        the string
      • verboseToNativeType

        public static final java.lang.String verboseToNativeType​(java.lang.String type)
        Verbose to native type string.
        Parameters:
        type - the type
        Returns:
        the string
      • getTypeNameFromDescriptor

        public static final java.lang.String getTypeNameFromDescriptor​(java.lang.String desc)
        extracts the class name or primitve identifier from any type descriptor. e.g. [[Ltest/ugly/JJ -> test/ugly/JJ
        Parameters:
        desc - the desc
        Returns:
        the extracted class name or primitive identifier.
      • toJavaType

        public static java.lang.String toJavaType​(java.lang.String type)
        To java type string.
        Parameters:
        type - the type
        Returns:
        the string
      • toJavaParameters

        public static java.lang.String toJavaParameters​(java.lang.String parameters)
        To java parameters string.
        Parameters:
        parameters - the parameters
        Returns:
        the string
      • getArgumentString

        public static final java.lang.String getArgumentString​(org.objectweb.asm.Type[] arguments)
        Gets argument string.
        Parameters:
        arguments - the arguments
        Returns:
        the argument string
      • toNativeMethod

        public static final java.lang.String[] toNativeMethod​(java.lang.String javaMethod)
        To native method string [ ].
        Parameters:
        javaMethod - the java method
        Returns:
        the string [ ]
      • toBase64

        public static java.lang.String toBase64​(byte[] b)
        To base 64 string.
        Parameters:
        b - the b
        Returns:
        the string