Method Summary |
|
public static String | convertToLiteral(String s) Converts the given string to a valid Java string literal. |
public static String | encodeHTML(String s) Encode &, <, > and newlines as HTML entities. |
public static Pair<Integer, Integer> | getOffsetAndLength(String fullString, int startRow, int startCol, int endRow, int endCol) Gets the offset and length equivalent to the given pairs start and end row-col.
Parameters: fullString - the string in which to compute the offset/length Parameters: startRow - the row on which the error starts, starting at one for the first row Parameters: startCol - the col on which the error starts, starting at one for the first column Parameters: endRow - the row on which the error ends. |
public static String | getSimpleName(Class c) Returns the simple class name. |
public static String | getStackTrace(Throwable t) Gets the stack trace of the given Throwable as a String. |
public static String | getStackTrace() Gets the stack trace of the current code. |
public static boolean | isAnonymousClass(Class c) Returns true if the class is an anonymous inner class. |
public static boolean | isAsciiDigit(char c) Character.isDigit answers true to some non-ascii
digits. |
public static boolean | isMemberClass(Class c) Returns true if the class is a member class. |
public static String | memSizeToString(long l) Return a string representing the approximate amount of memory specified in bytes. |
public static String | replace(String fullString, String toReplace, String replacement) Takes theString fullString and replaces all instances of toReplace with replacement. |
public static String | toString(long[] a) This works just like java.util.Arrays.toString in Java 5.0 but is not version-specific. |
public static String | toString(int[] a) This works just like java.util.Arrays.toString in Java 5.0 but is not version-specific. |
public static String | toString(short[] a) This works just like java.util.Arrays.toString in Java 5.0 but is not version-specific. |
public static String | toString(char[] a) This works just like java.util.Arrays.toString in Java 5.0 but is not version-specific. |
public static String | toString(byte[] a) This works just like java.util.Arrays.toString in Java 5.0 but is not version-specific. |
public static String | toString(boolean[] a) This works just like java.util.Arrays.toString in Java 5.0 but is not version-specific. |
public static String | toString(float[] a) This works just like java.util.Arrays.toString in Java 5.0 but is not version-specific. |
public static String | toString(double[] a) This works just like java.util.Arrays.toString in Java 5.0 but is not version-specific. |
public static String | toString(Object[] a) This works just like java.util.Arrays.toString in Java 5.0 but is not version-specific. |