Class Not
java.lang.Object
org.apache.tools.ant.types.resources.selectors.Not
- All Implemented Interfaces:
ResourceSelector
public class Not extends java.lang.Object implements ResourceSelector
Not ResourceSelector.
- Since:
- Ant 1.7
-
Constructor Summary
Constructors Constructor Description Not()Default constructor.Not(ResourceSelector s)Convenience constructor. -
Method Summary
Modifier and Type Method Description voidadd(ResourceSelector s)Set the ResourceSelector.booleanisSelected(Resource r)Return true if this Resource is selected.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Not
public Not()Default constructor. -
Not
Convenience constructor.- Parameters:
s- the ResourceSelector to negate.
-
-
Method Details
-
add
Set the ResourceSelector.- Parameters:
s- the ResourceSelector to negate.- Throws:
java.lang.IllegalStateException- if already set.
-
isSelected
Return true if this Resource is selected.- Specified by:
isSelectedin interfaceResourceSelector- Parameters:
r- the Resource to check.- Returns:
- whether the Resource was selected.
-