Supported are the wildcard characters * and ? and groups with:
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| pack-priv static final List | |
| private List | |
| private List | |
| private List | listForLocalUseage
{ |
| Access | Constructor and Description |
|---|---|
| private | |
| private | FileNameMatcher(final List<Head>
must be a list which will never be modified. headsStartValue, final List<Head> a list which will be cloned and then used as current head
list. heads)
|
| public | FileNameMatcher(final String
must contain a pattern which fnmatch would accept. patternString, final Character if this parameter isn't null then this character will not
match at wildcards(* and ? are wildcards). invalidWildgetCharacter)Constructor for FileNameMatcher |
| public | FileNameMatcher(FileNameMatcher
another other)org.
instance.A Copy Constructor which creates a new
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| private static List | |
| public FileNameMatcher | Returns: aorg. instance which
uses the same pattern like this matcher, but has the current
state of this matcher as reset and start point.Create a |
| private static List | |
| private static AbstractHead | |
| private boolean | Returns: true to continue, false if the matcher can stop appendingnew character to append c)
|
| private static int | |
| private static int | |
| public boolean | |
| private static List | |
| public void |
| characterClassStartPattern | back to summary |
|---|---|
| private static final Pattern characterClassStartPattern | |
| EMPTY_HEAD_LIST | back to summary |
|---|---|
| pack-priv static final List<Head> EMPTY_HEAD_LIST | |
| heads | back to summary |
|---|---|
| private List<Head> heads | |
| headsStartValue | back to summary |
|---|---|
| private List<Head> headsStartValue | |
| listForLocalUseage | back to summary |
|---|---|
| private List<Head> listForLocalUseage { | |
| FileNameMatcher | back to summary |
|---|---|
| private FileNameMatcher(List<Head> headsStartValue) | |
| FileNameMatcher | back to summary |
|---|---|
| private FileNameMatcher(final List<Head> headsStartValue, final List<Head> heads) | |
| FileNameMatcher | back to summary |
|---|---|
| public FileNameMatcher(final String patternString, final Character invalidWildgetCharacter) throws InvalidPatternException Constructor for FileNameMatcher
| |
| FileNameMatcher | back to summary |
|---|---|
| public FileNameMatcher(FileNameMatcher other) A Copy Constructor which creates a new
| |
| append | back to summary |
|---|---|
| public void append(String stringToMatch) Append to the string which is matched against the patterns of this class
| |
| canAppendMatch | back to summary |
|---|---|
| public boolean canAppendMatch() Whether a match can be appended
| |
| createHeadsStartValues | back to summary |
|---|---|
| private static List | |
| createMatcherForSuffix | back to summary |
|---|---|
| public FileNameMatcher createMatcherForSuffix() Create a
| |
| createSimpleHeads | back to summary |
|---|---|
| private static List | |
| createWildCardHead | back to summary |
|---|---|
| private static AbstractHead createWildCardHead(final Character invalidWildgetCharacter, final boolean star) | |
| extendStringToMatchByOneCharacter | back to summary |
|---|---|
private boolean extendStringToMatchByOneCharacter(char c)
| |
| findGroupEnd | back to summary |
|---|---|
| private static int findGroupEnd(final int indexOfStartBracket, final String pattern) throws InvalidPatternException | |
| indexOfUnescaped | back to summary |
|---|---|
| private static int indexOfUnescaped(final String searchString, final char ch, final int fromIndex) | |
| isMatch | back to summary |
|---|---|
| public boolean isMatch() Whether the matcher matches
| |
| parseHeads | back to summary |
|---|---|
| private static List | |
| reset | back to summary |
|---|---|
| public void reset() Resets this matcher to it's state right after construction. | |