| Modifier | Constructor and Description |
|---|---|
|
Glob(String globString) |
|
Glob(String globString,
int flags) |
protected |
Glob(String globString,
Pattern pattern) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
finds(CharSequence s) |
List<File> |
getFiles(File root,
boolean recursive,
boolean usePath)
Get a list of files that match the glob expression
|
void |
getFiles(File root,
List<File> result,
boolean recursive,
boolean usePath) |
String |
glob() |
int |
hashCode() |
static boolean |
in(Collection<? extends Glob> globs,
String key) |
static boolean |
in(Glob[] globs,
String key) |
Matcher |
matcher(CharSequence input) |
boolean |
matches(CharSequence s) |
boolean |
matches(String s) |
Pattern |
pattern() |
void |
select(Collection<?> objects) |
void |
select(List<?> objects) |
static Pattern |
toPattern(String line) |
static Pattern |
toPattern(String line,
int flags) |
String |
toString() |
public static final Glob ALL
public Glob(String globString)
public Glob(String globString, int flags)
public String glob()
public Pattern pattern()
public Matcher matcher(CharSequence input)
public void select(Collection<?> objects)
public void select(List<?> objects)
public List<File> getFiles(File root, boolean recursive, boolean usePath)
root - the directory to get the files fromrecursive - to traverse the dirs recursivepublic static boolean in(Collection<? extends Glob> globs, String key)
public int finds(CharSequence s)
public boolean matches(String s)
public boolean matches(CharSequence s)
Copyright © 2021. All rights reserved.