| org.apache.tools.ant.types.selectors.BaseSelector org.apache.tools.ant.types.selectors.BaseExtendSelector org.apache.tools.ant.types.selectors.ContainsRegexpSelector
Method Summary | |
public boolean | isSelected(File basedir, String filename, File file) Tests a regular expression against each line of text in the file. | public boolean | isSelected(Resource r) Tests a regular expression against each line of text in a Resource.
Parameters: r - the Resource to check. | 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. | public String | toString() | public void | verifySettings() Checks that an expression was specified. |
EXPRESSION_KEY | final public static String EXPRESSION_KEY(Code) | | Key to used for parameterized custom selector
|
ContainsRegexpSelector | public ContainsRegexpSelector()(Code) | | Creates a new ContainsRegexpSelector instance.
|
isSelected | public boolean isSelected(File basedir, String filename, File file)(Code) | | Tests a regular expression against each line of text in the file.
Parameters: basedir - the base directory the scan is being done from Parameters: filename - is the name of the file to check Parameters: file - is a java.io.File object the selector can use whether the file should be selected or not |
isSelected | public boolean isSelected(Resource r)(Code) | | Tests a regular expression against each line of text in a Resource.
Parameters: r - the Resource to check. whether the Resource is selected or not |
setExpression | public void setExpression(String theexpression)(Code) | | The regular expression used to search the file.
Parameters: theexpression - this must match a line in the file to be selected. |
setParameters | public void setParameters(Parameter[] parameters)(Code) | | When using this as a custom selector, this method will be called.
It translates each parameter into the appropriate setXXX() call.
Parameters: parameters - the complete set of parameters for this selector |
toString | public String toString()(Code) | | a string describing this object |
verifySettings | public void verifySettings()(Code) | | Checks that an expression was specified.
|
Fields inherited from org.apache.tools.ant.types.selectors.BaseExtendSelector | protected Parameter[] parameters(Code)(Java Doc)
|
|
|