| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private boolean | |
| protected RegexpMatcher | |
| private int | |
| protected StringBuffer | |
| protected char[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | Returns: a one-element array containing the translated file or null if the to pattern did not matchthe source file name sourceFileName)Implements org. |
| protected String | Returns: the translated file name.the source file name. source)Replace all backreferences in the to pattern with the matched groups of the source. |
| public void | setCaseSensitive(boolean
a boolean, default is false. caseSensitive)Attribute specifying whether to ignore the case difference in the names. |
| public void | setFrom(String
the from pattern. from)Implements org. |
| public void | setHandleDirSep(boolean
a boolean, default is false. handleDirSep)Attribute specifying whether to ignore the difference between / and \ (the two common directory characters). |
| public void | setTo(String
the to pattern. to)Implements org. |
| DECIMAL | back to summary |
|---|---|
| private static final int DECIMAL | |
| handleDirSep | back to summary |
|---|---|
| private boolean handleDirSep | |
| reg | back to summary |
|---|---|
| protected RegexpMatcher reg | |
| regexpOptions | back to summary |
|---|---|
| private int regexpOptions | |
| result | back to summary |
|---|---|
| protected StringBuffer result | |
| to | back to summary |
|---|---|
| protected char[] to | |
| RegexpPatternMapper | back to summary |
|---|---|
| public RegexpPatternMapper() throws BuildException Constructor for RegexpPatternMapper.
| |
| mapFileName | back to summary |
|---|---|
| public String[] mapFileName(String sourceFileName) Implements org. Returns null if the source file name doesn't match the "from" pattern, an one-element array containing the translated file otherwise. | |
| replaceReferences | back to summary |
|---|---|
| protected String replaceReferences(String source) Replace all backreferences in the to pattern with the matched groups of the source. | |
| setCaseSensitive | back to summary |
|---|---|
| public void setCaseSensitive(boolean caseSensitive) Attribute specifying whether to ignore the case difference in the names.
| |
| setFrom | back to summary |
|---|---|
| public void setFrom(String from) throws BuildException Implements org. Sets the "from" pattern. Required.
| |
| setHandleDirSep | back to summary |
|---|---|
| public void setHandleDirSep(boolean handleDirSep) Attribute specifying whether to ignore the difference between / and \ (the two common directory characters).
| |
| setTo | back to summary |
|---|---|
| public void setTo(String to) Implements org. Sets the "to" pattern. Required.
| |