| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raelity.text.RegExp
com.raelity.text.RegExpJava
public class RegExpJava
| Field Summary | 
|---|
| Fields inherited from class com.raelity.text.RegExp | 
|---|
escape, IGNORE_CASE, matched, optim, PATTERN_NONE, PATTERN_PERL5, PATTERN_SIMPLE | 
| Constructor Summary | |
|---|---|
RegExpJava()
 | 
|
| Method Summary | |
|---|---|
static boolean | 
canInstantiate()
 | 
 void | 
compile(String patternString,
        int compileFlags)
Prepare this regular expression to use pattern for matching.  | 
static String | 
getAdaptedName()
 | 
static String | 
getDisplayName()
 | 
 Pattern | 
getPattern()
Pick up the underlying java.util.regex.Pattern  | 
 RegExpResult | 
getResult()
Returns a result object for the last call that used this RegExp for searching an input, for example match.  | 
 String | 
group(int i)
Get the ith backreference.  | 
 int | 
length(int i)
The length of the corresponding backreference.  | 
 int | 
nGroup()
Return the number of backreferences; this is the number of parenthes pairs.  | 
static int | 
patternType()
 | 
 boolean | 
search(char[] input,
       int start,
       int len)
Search for a match in char array starting at char position start with the indicated length.  | 
 boolean | 
search(String input)
Search for match.  | 
 boolean | 
search(String input,
       int start)
Search for a match in string starting at char position start  | 
 int | 
start(int i)
The offset from the begining of the input to the start of thespecified group.  | 
 int | 
stop(int i)
The offset from the begining of the input to the end of the specified group.  | 
| Methods inherited from class com.raelity.text.RegExp | 
|---|
compile, enableOptimize, isMatch, setEscape | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RegExpJava()
| Method Detail | 
|---|
public static String getDisplayName()
public static int patternType()
public static boolean canInstantiate()
public static String getAdaptedName()
public Pattern getPattern()
public void compile(String patternString,
                    int compileFlags)
             throws RegExpPatternError
compile in class RegExppatternString - The regular expression.
RegExpPatternError - This is thrown if there
 is a syntax error detected in the regular expression.public boolean search(String input)
RegExp
search in class RegExp
public boolean search(String input,
                      int start)
RegExp
search in class RegExp
public boolean search(char[] input,
                      int start,
                      int len)
RegExp
search in class RegExppublic RegExpResult getResult()
RegExp
getResult in class RegExpRegExpResultpublic int nGroup()
RegExp
nGroup in class RegExpRegExpResult.nGroup()public String group(int i)
RegExp
group in class RegExpRegExpResult.group(int)public int length(int i)
RegExp
length in class RegExppublic int start(int i)
RegExp
start in class RegExpRegExpResult.start(int)public int stop(int i)
RegExp
stop in class RegExpRegExpResult.stop(int)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||