gnu.kawa.ant

Class LineCommenterSet


public class LineCommenterSet
extends FilterSet

Nested Class Summary

static class
LineCommenterSet.LineCommenter
Individual filter component of filterset

Constructor Summary

LineCommenterSet()

Method Summary

void
addLineCommenter(LineCommenterSet.LineCommenter commenter)
Create a new filter
Hashtable
getCommenterHash()
Gets the filter hash of the FilterSet.
String
replaceTokens(String line)
Does replacement on the given string with token matching.

Constructor Details

LineCommenterSet

public LineCommenterSet()

Method Details

addLineCommenter

public void addLineCommenter(LineCommenterSet.LineCommenter commenter)
Create a new filter
Parameters:
commenter - the filter to be added

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.
Parameters:
line - The line to process the tokens in.
Returns:
The string with the tokens replaced.