public abstract static class UnixStyleGlobbing.GlobDefinition extends Object
File systems implementations should implement a subclass of this one to provide parsing of glob patterns appropriate for their pathing syntax.
Modifier | Constructor and Description |
---|---|
protected |
GlobDefinition(String globPattern,
String separators,
String prefix)
Defines a new globbing pattern.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getElementPatterns()
Gets the globbing patterns for each element.
|
abstract Path |
getRootPath()
Gets the initial path from which globbing starts.
|
protected String |
parseDirectoryPattern(String pattern,
int start,
int end)
Identifies the next element pattern between specified locations.
|
protected void |
parsePattern(String pattern,
List<String> directoryPatterns)
Breaks a full globbing pattern into individual per-directory elements.
|
protected GlobDefinition(String globPattern, String separators, String prefix)
globPattern
- the full pattern for matchingseparators
- valid path element separatorsprefix
- a prefix to remove from the pattern, if present.
Normally, this would be the file system prefix which, if removed,
leaves only the hierarchical path.public abstract Path getRootPath()
public List<String> getElementPatterns()
protected final String parseDirectoryPattern(String pattern, int start, int end)
pattern
- the complete globbing patternstart
- the index of the first character in the elementend
- the upper bound on the element indexCopyright © 2020 Actian Corporation. All rights reserved.