212 |
if (match != null) |
if (match != null) |
213 |
{ |
{ |
214 |
if (match.getStartIndex() == 0) |
if (match.getStartIndex() == 0) |
215 |
return true; |
{ |
216 |
|
position = match.getEndIndex(); |
217 |
|
return true; |
218 |
|
} |
219 |
match = null; |
match = null; |
220 |
} |
} |
221 |
return false; |
return false; |
233 |
*/ |
*/ |
234 |
public boolean matches () |
public boolean matches () |
235 |
{ |
{ |
236 |
return find(0); |
if (lookingAt()) |
237 |
|
{ |
238 |
|
if (position == input.length()) |
239 |
|
return true; |
240 |
|
match = null; |
241 |
|
} |
242 |
|
return false; |
243 |
} |
} |
244 |
|
|
245 |
/** |
/** |