Save This Page
Home » apache-ant-1.8.1 » » ant » types » selectors » [javadoc | source]
public class: ContainsRegexpSelector [javadoc | source]

All Implemented Interfaces:
    ResourceSelector, ExtendFileSelector, FileSelector, Cloneable

Selector that filters files based on a regular expression.
Field Summary
public static final  String EXPRESSION_KEY    Key to used for parameterized custom selector 
Fields inherited from
Fields inherited from
ref,  checked
Fields inherited from
project,  location,  description
 public ContainsRegexpSelector() 
Method from Summary:
isSelected,   isSelected,   setExpression,   setParameters,   toString,   verifySettings
Methods from
getParameters,   isSelected,   setParameters
Methods from
getError,   isSelected,   setError,   validate,   verifySettings
Methods from
checkAttributesAllowed,   checkChildrenAllowed,   circularReference,   clone,   dieOnCircularReference,   dieOnCircularReference,   dieOnCircularReference,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getDataTypeName,   getRefid,   invokeCircularReferenceCheck,   isChecked,   isReference,   noChildrenAllowed,   pushAndInvokeCircularReferenceCheck,   setChecked,   setRefid,   toString,   tooManyAttributes
Methods from
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from Detail:
 public boolean isSelected(Resource r) 
    Tests a regular expression against each line of text in a Resource.
 public boolean isSelected(File basedir,
    String filename,
    File file) 
    Tests a regular expression against each line of text in the file.
 public  void setExpression(String theexpression) 
    The regular expression used to search the file.
 public  void setParameters(Parameter[] parameters) 
    When using this as a custom selector, this method will be called. It translates each parameter into the appropriate setXXX() call.
 public String toString() 
 public  void verifySettings() 
    Checks that an expression was specified.