Package gnu.kawa.ant

Class LineStripperSet

  • All Implemented Interfaces:
    Cloneable

    public class LineStripperSet
    extends org.apache.tools.ant.types.FilterSet
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LineStripperSet.LineStripper
      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
      LineStripperSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLineStripper​(LineStripperSet.LineStripper stripper)
      Create a new filter
      Hashtable getStripperHash()
      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
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
    • Constructor Detail

      • LineStripperSet

        public LineStripperSet()
    • Method Detail

      • getStripperHash

        public Hashtable getStripperHash()
        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.
      • addLineStripper

        public void addLineStripper​(LineStripperSet.LineStripper stripper)
        Create a new filter
        Parameters:
        stripper - the filter to be added