Class SignatureParser

java.lang.Object
com.jprofiler.api.platform.util.SignatureParser

public abstract class SignatureParser extends Object
Helper class to parse a signature in JVM format.
  • Method Details

    • getVerbose

      public static String getVerbose(String signature)
      Returns a verbose form of the signature. Same as getVerbose(String, boolean) with formatted set to true.
      Parameters:
      signature - the signature in JVM format
      Returns:
      the verbose form of the signature
    • getVerbose

      public static String getVerbose(String signature, boolean formatted)
      Returns a verbose form of the signature.
      Parameters:
      signature - the signature in JVM format
      formatted - if arrays should be formatted for better readability
      Returns:
      the verbose form of the signature
    • getVerboseArguments

      public static String getVerboseArguments(String signature)
      Returns a verbose form of the signature surrounded by parentheses.
      Parameters:
      signature - the signature in JVM format
      Returns:
      the verbose form of the signature with parentheses
    • getVerboseReturnType

      public static String getVerboseReturnType(String signature)
      Returns a verbose form of the return type in a signature. Same as getVerboseReturnType(String, boolean) with formatted set to true.
      Parameters:
      signature - the signature in JVM format
      Returns:
      the verbose form of the return type
    • getVerboseReturnType

      public static String getVerboseReturnType(String signature, boolean formatted)
      Returns a verbose form of the return type in a signature.
      Parameters:
      signature - the signature in JVM format
      formatted - if arrays should be formatted for better readability
      Returns:
      the verbose form of the return type