| java.lang.Object com.tc.aspectwerkz.util.Strings
extractMethodSignature | public static String[] extractMethodSignature(String methodCallSignature)(Code) | | Parse a method signature or method call signature.
Given a call signature like "method(Type t)", extract the method name
and param type and parameter name: [method, Type, t]
Given a signature like "method(X x, Y)", extract the method name
and param name / param type - but leaving empty String if
the information is not available: [method, X, x, Y, ""]
Parameters: methodCallSignature - each element (2xp+1 sized) (see doc) |
isNullOrEmpty | public static boolean isNullOrEmpty(String s)(Code) | | |
removeFormattingCharacters | public static String removeFormattingCharacters(String toBeEscaped)(Code) | | Removes newline, carriage return and tab characters from a string.
Parameters: toBeEscaped - string to escape the escaped string |
replaceSubString | public static String replaceSubString(String str, String oldToken, String newToken)(Code) | | Replaces all occurences of a substring inside a string.
Parameters: str - the string to search and replace in Parameters: oldToken - the string to search for Parameters: newToken - the string to replace newToken the new string |
replaceSubString | public static String replaceSubString(String str, String oldToken, String newToken, int max)(Code) | | Replaces all occurences of a substring inside a string.
Parameters: str - the string to search and replace in Parameters: oldToken - the string to search for Parameters: newToken - the string to replace newToken Parameters: max - maximum number of values to replace (-1 => no maximum) the new string |
splitString | final public static String[] splitString(String stringToSplit, String delimiter)(Code) | | String split on multicharacter delimiter. Written by Tim Quinn (tim.quinn@honeywell.com)
Parameters: stringToSplit - Parameters: delimiter - |
|
|