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.ReplaceRegex
public static class TokenFilter.ReplaceRegex
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 line)
- Specified by:
- filter in interface TokenFilter.Filter
- Parameters:
line
- the string to modify
- Returns:
- the modified string
public void setFlags(String flags)
- Parameters:
flags
- the regex flags
public void setPattern(String from)
the from attribute
- Parameters:
from
- the regex string
public void setReplace(String to)
the to attribute
- Parameters:
to
- the replacement string