Package com.jprofiler.api.platform.util
Class SignatureParser
java.lang.Object
com.jprofiler.api.platform.util.SignatureParser
Helper class to parse a signature in JVM format.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getVerbose
(String signature) Returns a verbose form of the signature.static String
getVerbose
(String signature, boolean formatted) Returns a verbose form of the signature.static String
getVerboseArguments
(String signature) Returns a verbose form of the signature surrounded by parentheses.static String
getVerboseReturnType
(String signature) Returns a verbose form of the return type in a signature.static String
getVerboseReturnType
(String signature, boolean formatted) Returns a verbose form of the return type in a signature.
-
Method Details
-
getVerbose
Returns a verbose form of the signature. Same asgetVerbose(String, boolean)
with formatted set totrue
.- Parameters:
signature
- the signature in JVM format- Returns:
- the verbose form of the signature
-
getVerbose
Returns a verbose form of the signature.- Parameters:
signature
- the signature in JVM formatformatted
- if arrays should be formatted for better readability- Returns:
- the verbose form of the signature
-
getVerboseArguments
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
Returns a verbose form of the return type in a signature. Same asgetVerboseReturnType(String, boolean)
with formatted set totrue
.- Parameters:
signature
- the signature in JVM format- Returns:
- the verbose form of the return type
-
getVerboseReturnType
Returns a verbose form of the return type in a signature.- Parameters:
signature
- the signature in JVM formatformatted
- if arrays should be formatted for better readability- Returns:
- the verbose form of the return type
-