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 ClassesModifier and TypeClassDescriptionstatic class
Individual filter component of filtersetNested classes/interfaces inherited from class org.apache.tools.ant.types.FilterSet
org.apache.tools.ant.types.FilterSet.Filter, org.apache.tools.ant.types.FilterSet.FiltersFile, org.apache.tools.ant.types.FilterSet.OnMissing
-
Field Summary
Fields inherited from class org.apache.tools.ant.types.FilterSet
DEFAULT_TOKEN_END, DEFAULT_TOKEN_START
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLineCommenter
(LineCommenterSet.LineCommenter commenter) Create a new filterGets the filter hash of the FilterSet.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
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Constructor Details
-
LineCommenterSet
public LineCommenterSet()
-
-
Method Details
-
getCommenterHash
Gets the filter hash of the FilterSet.- Returns:
- The hash of the tokens and values for quick lookup.
-
replaceTokens
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
Create a new filter- Parameters:
commenter
- the filter to be added
-