Skip to content

Commit df43c90

Browse files
committed
interfaces have no added value
1 parent 5d529d4 commit df43c90

File tree

6 files changed

+81
-154
lines changed

6 files changed

+81
-154
lines changed

src/main/java/org/tbee/regexpbuilder/RE.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,145 +2,145 @@
22

33
public class RE {
44

5-
public RegExpCore group(String name, String s) {
5+
public RegExp group(String name, String s) {
66
return RegExp.of().group(name, s);
77
}
88

9-
public RegExpCore group(String name, RegExpCore regExp) {
9+
public RegExp group(String name, RegExp regExp) {
1010
return RegExp.of().group(name, regExp);
1111
}
1212

1313
// -------------------------
1414
// PATTERN
1515

16-
static public RegExpCore text(String s) {
16+
static public RegExp text(String s) {
1717
return RegExp.of().text(s);
1818
}
1919

20-
static public RegExpCore oneOf(RegExpCore regExp) {
20+
static public RegExp oneOf(RegExp regExp) {
2121
return RegExp.of().oneOf(regExp);
2222
}
23-
static public RegExpCore oneOf(String s) {
23+
static public RegExp oneOf(String s) {
2424
return RegExp.of().oneOf(s);
2525
}
2626

27-
static public RegExpCore notOneOf(RegExpCore regExp) {
27+
static public RegExp notOneOf(RegExp regExp) {
2828
return RegExp.of().notOneOf(regExp);
2929
}
30-
static public RegExpCore notOneOf(String s) {
30+
static public RegExp notOneOf(String s) {
3131
return RegExp.of().notOneOf(s);
3232
}
3333

34-
static public RegExpCore optional(RegExpCore regExp) {
34+
static public RegExp optional(RegExp regExp) {
3535
return RegExp.of().optional(regExp);
3636
}
37-
static public RegExpCore optional(String s) {
37+
static public RegExp optional(String s) {
3838
return RegExp.of().optional(s);
3939
}
4040

41-
static public RegExpCore zeroOrMore(RegExpCore regExp) {
41+
static public RegExp zeroOrMore(RegExp regExp) {
4242
return RegExp.of().zeroOrMore(regExp);
4343
}
44-
static public RegExpCore zeroOrMore(String s) {
44+
static public RegExp zeroOrMore(String s) {
4545
return RegExp.of().zeroOrMore(s);
4646
}
4747

48-
static public RegExpCore oneOrMore(RegExpCore regExp) {
48+
static public RegExp oneOrMore(RegExp regExp) {
4949
return RegExp.of().oneOrMore(regExp);
5050
}
51-
static public RegExpCore oneOrMore(String s) {
51+
static public RegExp oneOrMore(String s) {
5252
return RegExp.of().oneOrMore(s);
5353
}
5454

55-
static public RegExpCore occurs(int times, RegExpCore regExp) {
55+
static public RegExp occurs(int times, RegExp regExp) {
5656
return RegExp.of().occurs(times, regExp);
5757
}
58-
static public RegExpCore occurs(int times, String s) {
58+
static public RegExp occurs(int times, String s) {
5959
return RegExp.of().occurs(times, s);
6060
}
6161

62-
static public RegExpCore occursAtLeast(int times, RegExpCore regExp) {
62+
static public RegExp occursAtLeast(int times, RegExp regExp) {
6363
return RegExp.of().occursAtLeast(times, regExp);
6464
}
65-
static public RegExpCore occursAtLeast(int times, String s) {
65+
static public RegExp occursAtLeast(int times, String s) {
6666
return RegExp.of().occursAtLeast(times, s);
6767
}
6868

69-
static public RegExpCore occursBetween(int minTimes, int maxTimes, RegExpCore regExp) {
69+
static public RegExp occursBetween(int minTimes, int maxTimes, RegExp regExp) {
7070
return RegExp.of().occursBetween(minTimes, maxTimes, regExp);
7171
}
72-
static public RegExpCore occursBetween(int minTimes, int maxTimes, String s) {
72+
static public RegExp occursBetween(int minTimes, int maxTimes, String s) {
7373
return RegExp.of().occursBetween(minTimes, maxTimes, s);
7474
}
7575

7676
// -------------------------
7777
// LITERAL
7878

79-
static public RegExpCore anyChar() {
79+
static public RegExp anyChar() {
8080
return RegExp.of().anyChar();
8181
}
8282

83-
static public RegExpCore startOfLine() {
83+
static public RegExp startOfLine() {
8484
return RegExp.of().startOfLine();
8585
}
8686

87-
static public RegExpBuild endOfLine() {
87+
static public RegExp endOfLine() {
8888
return RegExp.of().endOfLine();
8989
}
9090

9191
/**
9292
* Any digit, short for [0-9]
9393
* @return
9494
*/
95-
static public RegExpCore digit() {
95+
static public RegExp digit() {
9696
return RegExp.of().digit();
9797
}
9898

9999
/**
100100
* Any non-digit, short for [^0-9]
101101
* @return
102102
*/
103-
static public RegExpCore nonDigit() {
103+
static public RegExp nonDigit() {
104104
return RegExp.of().nonDigit();
105105
}
106106

107107
/**
108108
* Any whitespace character, short for [\t\n\x0B\f\r]
109109
* @return
110110
*/
111-
static public RegExpCore whitespace() {
111+
static public RegExp whitespace() {
112112
return RegExp.of().whitespace();
113113
}
114114

115115
/**
116116
* Any non-whitespace character, short for [^\s]
117117
* @return
118118
*/
119-
static public RegExpCore nonWhitespace() {
119+
static public RegExp nonWhitespace() {
120120
return RegExp.of().nonWhitespace();
121121
}
122122

123123
/**
124124
* Any word character, short for [a-zA-Z_0-9]
125125
* @return
126126
*/
127-
static public RegExpCore wordChar() {
127+
static public RegExp wordChar() {
128128
return RegExp.of().wordChar();
129129
}
130130

131131
/**
132132
* Any non-word character, short for [^\w]
133133
* @return
134134
*/
135-
static public RegExpCore nonWordChar() {
135+
static public RegExp nonWordChar() {
136136
return RegExp.of().nonWordChar();
137137
}
138138

139-
static public RegExpCore wordBoundary() {
139+
static public RegExp wordBoundary() {
140140
return RegExp.of().wordBoundary();
141141
}
142142

143-
static public RegExpCore nonWordBoundary() {
143+
static public RegExp nonWordBoundary() {
144144
return RegExp.of().nonWordBoundary();
145145
}
146146
}

0 commit comments

Comments
 (0)