public class ClosureFilenameFilter extends Attributable implements java.io.FilenameFilter
DEBUG| Constructor and Description |
|---|
ClosureFilenameFilter(Closure closure)
Constructs a ClosureFilenameFilter object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File dir,
java.lang.String name) |
void |
setFilenameFilterClosure(Closure closure)
Closure must have arity 3.
|
_getAttribute, _setAttribute, getAttribute, getAttributeAsBoolean, getAttributeAsByte, getAttributeAsChar, getAttributeAsClosure, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsShort, getAttributeAsString, getKeys, getStaticAttribute, getStaticKeys, isAttribute, isStaticAttribute, removeAllAttributes, removeAllStaticAttributes, removeAttribute, removeStaticAttribute, setAttribute, setStaticAttribute, showAttributes, showAttributespublic ClosureFilenameFilter(Closure closure)
closure - a Closure objectpublic void setFilenameFilterClosure(Closure closure)
closure - Closure to be invoked when receiving an eventpublic boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilter