static class Finder.ExecJavaFilter extends Finder.Filter
Finder.Callable
which passes the file received
if the method Finder.Callable.call(File) succeeds
according to its return code.Finder.exec(String[]),
Finder.ExecFilter| Modifier and Type | Field and Description |
|---|---|
private Finder.Callable |
callable
The instance to be executed to decide
whether a given file passes the filter
invoking
Finder.Callable.call(File). |
| Constructor and Description |
|---|
ExecJavaFilter(Finder.Callable callable)
Creates a java execution filter
from the given
Finder.Callable. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
pass(File file)
The given file passes this filter,
i.e. this method returns
true,
if so does callable. |
and, not, orprivate final Finder.Callable callable
Finder.Callable.call(File).
Besides filtering, other actions may be taken as side effect.
Parameters are passed to the callable when creating the instance
or later by a setter method, depending on the implementation.ExecJavaFilter(Finder.Callable callable)
Finder.Callable.callable - The callable defining the filter.public boolean pass(File file)
true,
if so does callable.pass in class Finder.FilterCopyright © 2012–2018 Simuline Organization (l2r). All rights reserved.