public final class Matcher
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static MatchResult |
findMatch(Pattern pattern,
Path input)
Find the first match of a pattern in a path.
|
static MatchResult |
findMatch(Pattern pattern,
Path input,
int pos)
Find the first match of a pattern in a path starting at a given position.
|
static Path |
match(Pattern pattern,
Path input)
Match a pattern against an input path and return the remaining path.
|
static boolean |
matches(Pattern pattern,
Path input)
Checks whether a pattern matches an input path.
|
public static Path match(Pattern pattern, Path input)
pattern - input - null if the whole path
was matched.MatchResult.getRemainder()public static boolean matches(Pattern pattern, Path input)
pattern - input - true if pattern matches the whole input.MatchResult.isFullMatch()public static MatchResult findMatch(Pattern pattern, Path input)
pattern - input - MatchResult or null if the pattern does not occur in the
input.java.lang.IllegalArgumentException - if input is not normalized.public static MatchResult findMatch(Pattern pattern, Path input, int pos)
pattern - input - pos - MatchResult or null if the pattern does not occur in the
input.java.lang.IllegalArgumentException - if input is not normalized.Copyright © 2010 - 2023 Adobe. All Rights Reserved