org.apache.tools.ant.filters

Class StripLineComments.Comment

public static class StripLineComments.Comment extends Object

The class that holds a comment representation.
Method Summary
voidaddText(String comment)
Alt. syntax to set the prefix for this type of line comment.
StringgetValue()
Returns the prefix for this type of line comment.
voidsetValue(String comment)
Sets the prefix for this type of line comment.

Method Detail

addText

public void addText(String comment)
Alt. syntax to set the prefix for this type of line comment.

Parameters: comment The prefix for a line comment of this type. Must not be null.

getValue

public final String getValue()
Returns the prefix for this type of line comment.

Returns: the prefix for this type of line comment.

setValue

public final void setValue(String comment)
Sets the prefix for this type of line comment.

Parameters: comment The prefix for a line comment of this type. Must not be null.