|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.util.PatternUtil
public class PatternUtil
Ease use of regular expressions on heap objects.
Constructor Summary | |
---|---|
PatternUtil()
|
Method Summary | |
---|---|
static java.lang.String |
smartFix(java.lang.String pattern)
Fix up a pattern to be a true regular expression pattern. |
static java.lang.String |
smartFix(java.lang.String pattern,
boolean addDotStars)
Fix up a pattern to be a true regular expression pattern. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatternUtil()
Method Detail |
---|
public static java.lang.String smartFix(java.lang.String pattern)
pattern
-
public static java.lang.String smartFix(java.lang.String pattern, boolean addDotStars)
pattern
- addDotStars
- if true then if the pattern does not contain one of the expressions .* !^
(at the beginning) $ (at the end), then a .* is added at the
beginning and at the end of the pattern.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |