public class GlobPattern extends Object
构造器和说明 |
---|
GlobPattern(String globPattern)
Construct the glob pattern object with a glob pattern string
|
限定符和类型 | 方法和说明 |
---|---|
static Pattern |
compile(String globPattern)
Compile glob pattern string
|
Pattern |
compiled() |
boolean |
hasWildcard() |
boolean |
matches(CharSequence s)
Match input against the compiled glob pattern
|
void |
set(String glob)
Set and compile a glob pattern
|
public GlobPattern(String globPattern)
globPattern
- the glob pattern stringpublic Pattern compiled()
public static Pattern compile(String globPattern)
globPattern
- the glob patternpublic boolean matches(CharSequence s)
s
- input charspublic void set(String glob)
glob
- the glob pattern stringpublic boolean hasWildcard()
Copyright © 2009 The Apache Software Foundation