-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#1. Syntax {1,} support
- Loading branch information
Showing
16 changed files
with
124 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/github/curiousoddman/rgxgen/iterators/StringIterator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.github.curiousoddman.rgxgen.iterators; | ||
|
||
import java.util.Iterator; | ||
import java.util.Objects; | ||
|
||
public abstract class StringIterator implements Iterator<String> { | ||
|
||
private String aCurrent; | ||
|
||
@SuppressWarnings("IteratorNextCanNotThrowNoSuchElementException") | ||
@Override | ||
public String next() { | ||
aCurrent = nextImpl(); | ||
Objects.requireNonNull(aCurrent); | ||
return aCurrent; | ||
} | ||
|
||
protected abstract String nextImpl(); | ||
|
||
public String current() { | ||
return aCurrent; | ||
} | ||
} |
29 changes: 0 additions & 29 deletions
29
src/main/java/com/github/curiousoddman/rgxgen/iterators/ZeroLengthIterator.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.