Package org.openjdk.asmtools.asmutils
Class StringUtils
java.lang.Object
org.openjdk.asmtools.asmutils.StringUtils
Utility class to share common tools/methods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isPrintableChar
(char c) static String
mapToHexString
(int[] array) static String
static String
Utf8ToString
(String utf8) Converts CONSTANT_Utf8_info string to a printable string for jdis/jdes.
-
Field Details
-
endWith
-
contains
-
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
Utf8ToString
Converts CONSTANT_Utf8_info string to a printable string for jdis/jdes.- Parameters:
utf8
- UTF8 string taken from within ConstantPool of a class file- Returns:
- output string for jcod/jasm
-
mapToHexString
-
repeat
-
isPrintableChar
public static boolean isPrintableChar(char c)
-