public abstract static class Find.BinaryTest extends Object
Find.Test with two operand expressions.| Modifier and Type | Field and Description |
|---|---|
static de.unkrig.zz.find.Find.Test |
FALSE
A
Find.Test which unconditionally evaluates to false. |
protected Find.Expression |
lhs
The two operands of this test.
|
protected Find.Expression |
rhs
The two operands of this test.
|
static de.unkrig.zz.find.Find.Test |
TRUE
A
Find.Test which unconditionally evaluates to true. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(de.unkrig.commons.lang.protocol.Mapping<String,Object> properties)
Evaluates to
true or false, depending on the properties:
String name
The name of the file, directory or archive entry. |
protected final Find.Expression lhs
protected final Find.Expression rhs
public static final de.unkrig.zz.find.Find.Test TRUE
Find.Test which unconditionally evaluates to true.public static final de.unkrig.zz.find.Find.Test FALSE
Find.Test which unconditionally evaluates to false.public boolean evaluate(de.unkrig.commons.lang.protocol.Mapping<String,Object> properties)
Find.Expressiontrue or false, depending on the properties:
/").
directory"file"archive-file"archive-xxx-resource" (e.g. xxx="http")compressed-file"compressed-xxx-resource" (e.g. xxx="http")directory-entry"archive"compressed-contents"normal-contents"The following properties apply to the current file or directory, or, iff the current document is the contents of a compressed file, or the contents of an archive entry, to the enclosing compressed resp. archive file:
File.getAbsolutePath().
File.getCanonicalPath().
==") silently convert dates into strings with
format "EEE MMM dd HH:mm:ss zzz yyyy" (see SimpleDateFormat).
File.getFreeSpace().
File.getTotalSpace().
File.getUsableSpace().
true for a directory, otherwise false.
false for a directory, otherwise true.
File.isHidden()).
File.canRead().
File.canWrite().
File.canExecute()).
The following properties are available iff the current file is an archive file, or the current document exists within the contents of an archive:
The following properties are available iff the current file is a compressed file, or the current document exists within compressed contents:
evaluate in interface Find.Expressionevaluate in interface de.unkrig.commons.lang.protocol.PredicateWhichThrows<de.unkrig.commons.lang.protocol.Mapping<String,Object>,de.unkrig.commons.lang.protocol.NoException>Copyright © 2019 Arno Unkrig. All rights reserved.