public class Glob
extends java.lang.Object
| Constructor and Description |
|---|
Glob(java.lang.String globString) |
Glob(java.lang.String globString,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.io.File> |
getFiles(java.io.File root,
boolean recursive,
boolean usePath)
Get a list of files that match the glob expression
|
void |
getFiles(java.io.File root,
java.util.List<java.io.File> result,
boolean recursive,
boolean usePath) |
int |
hashCode() |
static boolean |
in(java.util.Collection<? extends Glob> globs,
java.lang.String key) |
static boolean |
in(Glob[] globs,
java.lang.String key) |
java.util.regex.Matcher |
matcher(java.lang.CharSequence input) |
boolean |
matches(java.lang.String s) |
void |
select(java.util.Collection<?> objects) |
void |
select(java.util.List<?> objects) |
static java.util.regex.Pattern |
toPattern(java.lang.String s) |
static java.util.regex.Pattern |
toPattern(java.lang.String s,
int flags) |
java.lang.String |
toString() |
public static final Glob ALL
public Glob(java.lang.String globString)
public Glob(java.lang.String globString,
int flags)
public java.util.regex.Matcher matcher(java.lang.CharSequence input)
public java.lang.String toString()
toString in class java.lang.Objectpublic void select(java.util.Collection<?> objects)
public void select(java.util.List<?> objects)
public static java.util.regex.Pattern toPattern(java.lang.String s)
public static java.util.regex.Pattern toPattern(java.lang.String s,
int flags)
public java.util.List<java.io.File> getFiles(java.io.File root,
boolean recursive,
boolean usePath)
root - the directory to get the files fromrecursive - to traverse the dirs recursivepublic void getFiles(java.io.File root,
java.util.List<java.io.File> result,
boolean recursive,
boolean usePath)
public static boolean in(Glob[] globs, java.lang.String key)
public static boolean in(java.util.Collection<? extends Glob> globs, java.lang.String key)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean matches(java.lang.String s)
Copyright (c) aQute SARL (2000, 2018) and others. All Rights Reserved.