Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.filters.TokenFilter.ChainableReaderFilter
org.apache.tools.ant.filters.TokenFilter.ContainsRegex
public static class TokenFilter.ContainsRegex
Field Summary |
Fields inherited from class org.apache.tools.ant.ProjectComponent | |
description , location , project |
Method Summary | |
String |
|
void |
|
void |
|
void |
|
Methods inherited from class org.apache.tools.ant.filters.TokenFilter.ChainableReaderFilter | |
chain , setByLine |
Methods inherited from class org.apache.tools.ant.ProjectComponent | |
clone , getDescription , getLocation , getProject , log , log , setDescription , setLocation , setProject |
public String filter(String string)
apply regex and substitution on a string
- Specified by:
- filter in interface TokenFilter.Filter
- Parameters:
string
- the string to apply filter on
- Returns:
- the filtered string
public void setFlags(String flags)
- Parameters:
flags
- the regex flags
public void setPattern(String from)
- Parameters:
from
- the regex pattern
public void setReplace(String to)
- Parameters:
to
- the replacement string