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 SummaryConstructors Constructor Description Not()Default constructor.Not(ResourceSelector s)Convenience constructor.
 - 
Method SummaryModifier and Type Method Description voidadd(ResourceSelector s)Set the ResourceSelector.booleanisSelected(Resource r)Return true if this Resource is selected.
 
- 
- 
- 
Constructor Detail- 
Notpublic Not() Default constructor.
 - 
Notpublic Not(ResourceSelector s) Convenience constructor.- Parameters:
- s- the ResourceSelector to negate.
 
 
- 
 - 
Method Detail- 
addpublic void add(ResourceSelector s) Set the ResourceSelector.- Parameters:
- s- the ResourceSelector to negate.
- Throws:
- java.lang.IllegalStateException- if already set.
 
 - 
isSelectedpublic boolean isSelected(Resource r) Return true if this Resource is selected.- Specified by:
- isSelectedin interface- ResourceSelector
- Parameters:
- r- the Resource to check.
- Returns:
- whether the Resource was selected.
 
 
- 
 
-