| Package | Description |
|---|---|
| java.util | |
| java.util.regex |
| Modifier and Type | Method and Description |
|---|---|
Pattern |
Scanner.delimiter()
Returns the
Pattern this Scanner is currently
using to match delimiters. |
| Modifier and Type | Method and Description |
|---|---|
String |
Scanner.findInLine(Pattern pattern)
Attempts to find the next occurrence of the specified pattern ignoring
delimiters.
|
String |
Scanner.findWithinHorizon(Pattern pattern,
int horizon)
Attempts to find the next occurrence of the specified pattern.
|
boolean |
Scanner.hasNext(Pattern pattern)
Returns true if the next complete token matches the specified pattern.
|
String |
Scanner.next(Pattern pattern)
Returns the next token if it matches the specified pattern.
|
Scanner |
Scanner.skip(Pattern pattern)
Skips input that matches the specified pattern, ignoring delimiters.
|
Scanner |
Scanner.useDelimiter(Pattern pattern)
Sets this scanner's delimiting pattern to the specified pattern.
|
| Modifier and Type | Method and Description |
|---|---|
static Pattern |
Pattern.compile(String regex)
Compiles the given regular expression into a pattern.
|
static Pattern |
Pattern.compile(String regex,
int flags)
Compiles the given regular expression into a pattern with the given
flags.
|
Pattern |
Matcher.pattern()
Returns the pattern that is interpreted by this matcher.
|
| Modifier and Type | Method and Description |
|---|---|
Matcher |
Matcher.usePattern(Pattern newPattern)
Changes the Pattern that this Matcher uses to
find matches with.
|
Generated by SciJava from the sources of OpenJDK 8 (Zulu), which are licensed under the GNU General Public License, version 2, with the Classpath Exception. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.