|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--taskspaces.rna.Matcher
Class Matcher contains methods to match Strings using the BM (Boyer-Moore) class and Java methods.
| Constructor Summary | |
Matcher()
|
|
| Method Summary | |
static boolean |
match(java.lang.String[] patterns,
java.lang.String text,
int[] indices)
Finds a given set of patterns in a given text at specified indices. |
static boolean |
match(java.lang.String[] patterns,
java.lang.String text,
int[] indices,
java.util.List constraints)
Finds a given set of patterns in a given text at specified indices meeting specified constraints. |
static boolean |
match(java.lang.String pattern,
java.lang.String text,
int index)
Finds a patterns in a text at a specified index. |
static boolean |
matchBM(java.lang.String[] patterns,
java.lang.String text)
Finds a given set of patterns in a given text using a Boyer-Moore search. |
static boolean |
matchBM(java.lang.String[] patterns,
java.lang.String text,
int[] indices)
Finds a given set of patterns in a given text at specific indices using a Boyer-Moore search. |
static boolean |
matchBM(java.lang.String pattern,
java.lang.String text)
Finds a given pattern in a given text using a Boyer-Moore search. |
static boolean |
matchBM(java.lang.String pattern,
java.lang.String text,
int indx)
Finds a given pattern in a given text at a given index using a Boyer-Moore search. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Matcher()
| Method Detail |
public static boolean matchBM(java.lang.String pattern,
java.lang.String text)
pattern - the pattern to search for.text - the text to search.true if the pattern was found, otherwise false.
public static boolean matchBM(java.lang.String pattern,
java.lang.String text,
int indx)
pattern - the pattern to search for.text - the text to search.true if the pattern was found at the specified index.
public static boolean matchBM(java.lang.String[] patterns,
java.lang.String text)
pattern - the pattern to search for.text - the text to search.true if all patterns were found, false otherwise.
public static boolean matchBM(java.lang.String[] patterns,
java.lang.String text,
int[] indices)
pattern - the pattern to search for.text - the text to search.indices - indices where matches should occur.true if all patterns were found, false otherwise.
public static boolean match(java.lang.String[] patterns,
java.lang.String text,
int[] indices,
java.util.List constraints)
throws java.lang.Exception
pattern - the pattern to search for.text - the text to search.indices - indices where matches should occur.constraints - list of constraint integer arrays.true if all patterns were found, false otherwise.
public static boolean match(java.lang.String[] patterns,
java.lang.String text,
int[] indices)
throws java.lang.Exception
pattern - the pattern to search for.text - the text to search.indices - indices where matches should occur.true if all patterns were found, false otherwise.
public static boolean match(java.lang.String pattern,
java.lang.String text,
int index)
throws java.lang.Exception
pattern - the pattern to search for.text - the text to search.index - index where match should occur.true if pattern was found, false otherwise.
|
-bottom | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||