|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.util.Strings
Utility methods for strings.
Method Summary | |
static String[] |
extractMethodSignature(String methodCallSignature)
Parse a method signature or method call signature. |
static String |
removeFormattingCharacters(String toBeEscaped)
Removes newline, carriage return and tab characters from a string. |
static String |
replaceSubString(String str,
String oldToken,
String newToken)
Replaces all occurences of a substring inside a string. |
static String |
replaceSubString(String str,
String oldToken,
String newToken,
int max)
Replaces all occurences of a substring inside a string. |
static String[] |
splitString(String stringToSplit,
String delimiter)
String split on multicharacter delimiter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static String removeFormattingCharacters(String toBeEscaped)
toBeEscaped
- string to escape
public static String replaceSubString(String str, String oldToken, String newToken)
str
- the string to search and replace inoldToken
- the string to search fornewToken
- the string to replace newToken
public static String replaceSubString(String str, String oldToken, String newToken, int max)
str
- the string to search and replace inoldToken
- the string to search fornewToken
- the string to replace newTokenmax
- maximum number of values to replace (-1 => no maximum)
public static final String[] splitString(String stringToSplit, String delimiter)
stringToSplit
- delimiter
-
public static String[] extractMethodSignature(String methodCallSignature)
methodCallSignature
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |