|
2 | 2 |
|
3 | 3 | public class RE { |
4 | 4 |
|
5 | | - public RegExpCore group(String name, String s) { |
| 5 | + public RegExp group(String name, String s) { |
6 | 6 | return RegExp.of().group(name, s); |
7 | 7 | } |
8 | 8 |
|
9 | | - public RegExpCore group(String name, RegExpCore regExp) { |
| 9 | + public RegExp group(String name, RegExp regExp) { |
10 | 10 | return RegExp.of().group(name, regExp); |
11 | 11 | } |
12 | 12 |
|
13 | 13 | // ------------------------- |
14 | 14 | // PATTERN |
15 | 15 |
|
16 | | - static public RegExpCore text(String s) { |
| 16 | + static public RegExp text(String s) { |
17 | 17 | return RegExp.of().text(s); |
18 | 18 | } |
19 | 19 |
|
20 | | - static public RegExpCore oneOf(RegExpCore regExp) { |
| 20 | + static public RegExp oneOf(RegExp regExp) { |
21 | 21 | return RegExp.of().oneOf(regExp); |
22 | 22 | } |
23 | | - static public RegExpCore oneOf(String s) { |
| 23 | + static public RegExp oneOf(String s) { |
24 | 24 | return RegExp.of().oneOf(s); |
25 | 25 | } |
26 | 26 |
|
27 | | - static public RegExpCore notOneOf(RegExpCore regExp) { |
| 27 | + static public RegExp notOneOf(RegExp regExp) { |
28 | 28 | return RegExp.of().notOneOf(regExp); |
29 | 29 | } |
30 | | - static public RegExpCore notOneOf(String s) { |
| 30 | + static public RegExp notOneOf(String s) { |
31 | 31 | return RegExp.of().notOneOf(s); |
32 | 32 | } |
33 | 33 |
|
34 | | - static public RegExpCore optional(RegExpCore regExp) { |
| 34 | + static public RegExp optional(RegExp regExp) { |
35 | 35 | return RegExp.of().optional(regExp); |
36 | 36 | } |
37 | | - static public RegExpCore optional(String s) { |
| 37 | + static public RegExp optional(String s) { |
38 | 38 | return RegExp.of().optional(s); |
39 | 39 | } |
40 | 40 |
|
41 | | - static public RegExpCore zeroOrMore(RegExpCore regExp) { |
| 41 | + static public RegExp zeroOrMore(RegExp regExp) { |
42 | 42 | return RegExp.of().zeroOrMore(regExp); |
43 | 43 | } |
44 | | - static public RegExpCore zeroOrMore(String s) { |
| 44 | + static public RegExp zeroOrMore(String s) { |
45 | 45 | return RegExp.of().zeroOrMore(s); |
46 | 46 | } |
47 | 47 |
|
48 | | - static public RegExpCore oneOrMore(RegExpCore regExp) { |
| 48 | + static public RegExp oneOrMore(RegExp regExp) { |
49 | 49 | return RegExp.of().oneOrMore(regExp); |
50 | 50 | } |
51 | | - static public RegExpCore oneOrMore(String s) { |
| 51 | + static public RegExp oneOrMore(String s) { |
52 | 52 | return RegExp.of().oneOrMore(s); |
53 | 53 | } |
54 | 54 |
|
55 | | - static public RegExpCore occurs(int times, RegExpCore regExp) { |
| 55 | + static public RegExp occurs(int times, RegExp regExp) { |
56 | 56 | return RegExp.of().occurs(times, regExp); |
57 | 57 | } |
58 | | - static public RegExpCore occurs(int times, String s) { |
| 58 | + static public RegExp occurs(int times, String s) { |
59 | 59 | return RegExp.of().occurs(times, s); |
60 | 60 | } |
61 | 61 |
|
62 | | - static public RegExpCore occursAtLeast(int times, RegExpCore regExp) { |
| 62 | + static public RegExp occursAtLeast(int times, RegExp regExp) { |
63 | 63 | return RegExp.of().occursAtLeast(times, regExp); |
64 | 64 | } |
65 | | - static public RegExpCore occursAtLeast(int times, String s) { |
| 65 | + static public RegExp occursAtLeast(int times, String s) { |
66 | 66 | return RegExp.of().occursAtLeast(times, s); |
67 | 67 | } |
68 | 68 |
|
69 | | - static public RegExpCore occursBetween(int minTimes, int maxTimes, RegExpCore regExp) { |
| 69 | + static public RegExp occursBetween(int minTimes, int maxTimes, RegExp regExp) { |
70 | 70 | return RegExp.of().occursBetween(minTimes, maxTimes, regExp); |
71 | 71 | } |
72 | | - static public RegExpCore occursBetween(int minTimes, int maxTimes, String s) { |
| 72 | + static public RegExp occursBetween(int minTimes, int maxTimes, String s) { |
73 | 73 | return RegExp.of().occursBetween(minTimes, maxTimes, s); |
74 | 74 | } |
75 | 75 |
|
76 | 76 | // ------------------------- |
77 | 77 | // LITERAL |
78 | 78 |
|
79 | | - static public RegExpCore anyChar() { |
| 79 | + static public RegExp anyChar() { |
80 | 80 | return RegExp.of().anyChar(); |
81 | 81 | } |
82 | 82 |
|
83 | | - static public RegExpCore startOfLine() { |
| 83 | + static public RegExp startOfLine() { |
84 | 84 | return RegExp.of().startOfLine(); |
85 | 85 | } |
86 | 86 |
|
87 | | - static public RegExpBuild endOfLine() { |
| 87 | + static public RegExp endOfLine() { |
88 | 88 | return RegExp.of().endOfLine(); |
89 | 89 | } |
90 | 90 |
|
91 | 91 | /** |
92 | 92 | * Any digit, short for [0-9] |
93 | 93 | * @return |
94 | 94 | */ |
95 | | - static public RegExpCore digit() { |
| 95 | + static public RegExp digit() { |
96 | 96 | return RegExp.of().digit(); |
97 | 97 | } |
98 | 98 |
|
99 | 99 | /** |
100 | 100 | * Any non-digit, short for [^0-9] |
101 | 101 | * @return |
102 | 102 | */ |
103 | | - static public RegExpCore nonDigit() { |
| 103 | + static public RegExp nonDigit() { |
104 | 104 | return RegExp.of().nonDigit(); |
105 | 105 | } |
106 | 106 |
|
107 | 107 | /** |
108 | 108 | * Any whitespace character, short for [\t\n\x0B\f\r] |
109 | 109 | * @return |
110 | 110 | */ |
111 | | - static public RegExpCore whitespace() { |
| 111 | + static public RegExp whitespace() { |
112 | 112 | return RegExp.of().whitespace(); |
113 | 113 | } |
114 | 114 |
|
115 | 115 | /** |
116 | 116 | * Any non-whitespace character, short for [^\s] |
117 | 117 | * @return |
118 | 118 | */ |
119 | | - static public RegExpCore nonWhitespace() { |
| 119 | + static public RegExp nonWhitespace() { |
120 | 120 | return RegExp.of().nonWhitespace(); |
121 | 121 | } |
122 | 122 |
|
123 | 123 | /** |
124 | 124 | * Any word character, short for [a-zA-Z_0-9] |
125 | 125 | * @return |
126 | 126 | */ |
127 | | - static public RegExpCore wordChar() { |
| 127 | + static public RegExp wordChar() { |
128 | 128 | return RegExp.of().wordChar(); |
129 | 129 | } |
130 | 130 |
|
131 | 131 | /** |
132 | 132 | * Any non-word character, short for [^\w] |
133 | 133 | * @return |
134 | 134 | */ |
135 | | - static public RegExpCore nonWordChar() { |
| 135 | + static public RegExp nonWordChar() { |
136 | 136 | return RegExp.of().nonWordChar(); |
137 | 137 | } |
138 | 138 |
|
139 | | - static public RegExpCore wordBoundary() { |
| 139 | + static public RegExp wordBoundary() { |
140 | 140 | return RegExp.of().wordBoundary(); |
141 | 141 | } |
142 | 142 |
|
143 | | - static public RegExpCore nonWordBoundary() { |
| 143 | + static public RegExp nonWordBoundary() { |
144 | 144 | return RegExp.of().nonWordBoundary(); |
145 | 145 | } |
146 | 146 | } |
0 commit comments