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 
    Individual filter component of filterset

    Nested 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Create a new filter
    Gets the filter hash of the FilterSet.
    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LineCommenterSet

      public LineCommenterSet()
  • Method Details

    • 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 class org.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