link start!
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package org.apache.oro.text;
|
||||
|
||||
public interface MatchAction {
|
||||
void processMatch(MatchActionInfo matchActionInfo);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package org.apache.oro.text;
|
||||
|
||||
import org.apache.oro.text.regex.MalformedPatternException;
|
||||
import org.apache.oro.text.regex.Pattern;
|
||||
|
||||
public interface PatternCache {
|
||||
Pattern addPattern(String str) throws MalformedPatternException;
|
||||
|
||||
Pattern addPattern(String str, int i) throws MalformedPatternException;
|
||||
|
||||
int capacity();
|
||||
|
||||
Pattern getPattern(String str) throws MalformedCachePatternException;
|
||||
|
||||
Pattern getPattern(String str, int i) throws MalformedCachePatternException;
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package org.apache.oro.text.regex;
|
||||
|
||||
public interface MatchResult {
|
||||
int begin(int i);
|
||||
|
||||
int beginOffset(int i);
|
||||
|
||||
int end(int i);
|
||||
|
||||
int endOffset(int i);
|
||||
|
||||
String group(int i);
|
||||
|
||||
int groups();
|
||||
|
||||
int length();
|
||||
|
||||
String toString();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.oro.text.regex;
|
||||
|
||||
public interface Pattern {
|
||||
int getOptions();
|
||||
|
||||
String getPattern();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.apache.oro.text.regex;
|
||||
|
||||
public interface PatternCompiler {
|
||||
Pattern compile(String str) throws MalformedPatternException;
|
||||
|
||||
Pattern compile(String str, int i) throws MalformedPatternException;
|
||||
|
||||
Pattern compile(char[] cArr) throws MalformedPatternException;
|
||||
|
||||
Pattern compile(char[] cArr, int i) throws MalformedPatternException;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.apache.oro.text.regex;
|
||||
|
||||
public interface PatternMatcher {
|
||||
boolean contains(String str, Pattern pattern);
|
||||
|
||||
boolean contains(PatternMatcherInput patternMatcherInput, Pattern pattern);
|
||||
|
||||
boolean contains(char[] cArr, Pattern pattern);
|
||||
|
||||
MatchResult getMatch();
|
||||
|
||||
boolean matches(String str, Pattern pattern);
|
||||
|
||||
boolean matches(PatternMatcherInput patternMatcherInput, Pattern pattern);
|
||||
|
||||
boolean matches(char[] cArr, Pattern pattern);
|
||||
|
||||
boolean matchesPrefix(String str, Pattern pattern);
|
||||
|
||||
boolean matchesPrefix(PatternMatcherInput patternMatcherInput, Pattern pattern);
|
||||
|
||||
boolean matchesPrefix(char[] cArr, Pattern pattern);
|
||||
|
||||
boolean matchesPrefix(char[] cArr, Pattern pattern, int i);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.oro.text.regex;
|
||||
|
||||
public interface Substitution {
|
||||
void appendSubstitution(StringBuffer stringBuffer, MatchResult matchResult, int i, PatternMatcherInput patternMatcherInput, PatternMatcher patternMatcher, Pattern pattern);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.apache.oro.util;
|
||||
|
||||
public interface Cache {
|
||||
void addElement(Object obj, Object obj2);
|
||||
|
||||
int capacity();
|
||||
|
||||
Object getElement(Object obj);
|
||||
|
||||
int size();
|
||||
}
|
||||
Reference in New Issue
Block a user