Package gnu.kawa.ant
Class LineCommenterSet
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.types.DataType
-
- org.apache.tools.ant.types.FilterSet
-
- gnu.kawa.ant.LineCommenterSet
-
- All Implemented Interfaces:
Cloneable
public class LineCommenterSet extends org.apache.tools.ant.types.FilterSet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LineCommenterSet.LineCommenter
Individual filter component of filterset
-
Constructor Summary
Constructors Constructor Description LineCommenterSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLineCommenter(LineCommenterSet.LineCommenter commenter)
Create a new filterHashtable
getCommenterHash()
Gets the filter hash of the FilterSet.String
replaceTokens(String line)
Does replacement on the given string with token matching.-
Methods inherited from class org.apache.tools.ant.types.FilterSet
addConfiguredFilterSet, addConfiguredPropertySet, addFilter, addFilter, clone, createFiltersfile, getBeginToken, getEndToken, getFilterHash, getFilters, getOnMissingFiltersFile, getRef, hasFilters, isRecurse, readFiltersFromFile, setBeginToken, setEndToken, setFiltersfile, setOnMissingFiltersFile, setRecurse
-
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
-
-
-
-
Method Detail
-
getCommenterHash
public Hashtable getCommenterHash()
Gets the filter hash of the FilterSet.- Returns:
- The hash of the tokens and values for quick lookup.
-
replaceTokens
public String replaceTokens(String line)
Does replacement on the given string with token matching. This uses the defined begintoken and endtoken values which default to @ for both.- Overrides:
replaceTokens
in classorg.apache.tools.ant.types.FilterSet
- Parameters:
line
- The line to process the tokens in.- Returns:
- The string with the tokens replaced.
-
addLineCommenter
public void addLineCommenter(LineCommenterSet.LineCommenter commenter)
Create a new filter- Parameters:
commenter
- the filter to be added
-
-