public class FilterChain extends DataType implements java.lang.Cloneable
description, location, project
Constructor and Description |
---|
FilterChain() |
Modifier and Type | Method and Description |
---|---|
void |
add(ChainableReader filter)
Add a chainfilter filter.
|
void |
addClassConstants(ClassConstants classConstants)
Add a ClassConstants filter.
|
void |
addContainsRegex(TokenFilter.ContainsRegex filter)
Add a containsregex filter.
|
void |
addDeleteCharacters(TokenFilter.DeleteCharacters filter)
Add a delete characters filter.
|
void |
addEscapeUnicode(EscapeUnicode escapeUnicode)
Add an EscapeUnicode filter.
|
void |
addExpandProperties(ExpandProperties expandProperties)
Add an ExpandProperties filter.
|
void |
addFilterReader(AntFilterReader filterReader)
Add an AntFilterReader filter.
|
void |
addHeadFilter(HeadFilter headFilter)
Add a HeadFilter filter.
|
void |
addIgnoreBlank(TokenFilter.IgnoreBlank filter)
Add an ignoreBlank filter.
|
void |
addLineContains(LineContains lineContains)
Add a LineContains filter.
|
void |
addLineContainsRegExp(LineContainsRegExp lineContainsRegExp)
Add a LineContainsRegExp filter.
|
void |
addPrefixLines(PrefixLines prefixLines)
Add a PrefixLines filter.
|
void |
addReplaceRegex(TokenFilter.ReplaceRegex filter)
Add a replaceregex filter.
|
void |
addReplaceString(TokenFilter.ReplaceString filter)
Add a replacestring filter.
|
void |
addReplaceTokens(ReplaceTokens replaceTokens)
Add a ReplaceTokens filter.
|
void |
addStripJavaComments(StripJavaComments stripJavaComments)
Add a StripJavaCommands filter.
|
void |
addStripLineBreaks(StripLineBreaks stripLineBreaks)
Add a StripLineBreaks filter.
|
void |
addStripLineComments(StripLineComments stripLineComments)
Add a StripLineComments filter.
|
void |
addSuffixLines(SuffixLines suffixLines)
Add a SuffixLines filter.
|
void |
addTabsToSpaces(TabsToSpaces tabsToSpaces)
Add a TabsToSpaces filter.
|
void |
addTailFilter(TailFilter tailFilter)
Add a TailFilter filter.
|
void |
addTokenFilter(TokenFilter tokenFilter)
Add a TokenFilter filter.
|
void |
addTrim(TokenFilter.Trim filter)
Add a trim filter.
|
protected void |
dieOnCircularReference(java.util.Stack stk,
Project p)
Check to see whether any DataType we hold references to is
included in the Stack (which holds all DataType instances that
directly or indirectly reference this instance, including this
instance itself).
|
java.util.Vector |
getFilterReaders()
Return the filters.
|
void |
setRefid(Reference r)
Makes this instance in effect a reference to another FilterChain
instance.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void addFilterReader(AntFilterReader filterReader)
filterReader
- an AntFilterReader
valuepublic java.util.Vector getFilterReaders()
Vector
value containing the filterspublic void addClassConstants(ClassConstants classConstants)
classConstants
- a ClassConstants
valuepublic void addExpandProperties(ExpandProperties expandProperties)
expandProperties
- an ExpandProperties
valuepublic void addHeadFilter(HeadFilter headFilter)
headFilter
- a HeadFilter
valuepublic void addLineContains(LineContains lineContains)
lineContains
- a LineContains
valuepublic void addLineContainsRegExp(LineContainsRegExp lineContainsRegExp)
lineContainsRegExp
- a LineContainsRegExp
valuepublic void addPrefixLines(PrefixLines prefixLines)
prefixLines
- a PrefixLines
valuepublic void addSuffixLines(SuffixLines suffixLines)
suffixLines
- a SuffixLines
valuepublic void addReplaceTokens(ReplaceTokens replaceTokens)
replaceTokens
- a ReplaceTokens
valuepublic void addStripJavaComments(StripJavaComments stripJavaComments)
stripJavaComments
- a StripJavaComments
valuepublic void addStripLineBreaks(StripLineBreaks stripLineBreaks)
stripLineBreaks
- a StripLineBreaks
valuepublic void addStripLineComments(StripLineComments stripLineComments)
stripLineComments
- a StripLineComments
valuepublic void addTabsToSpaces(TabsToSpaces tabsToSpaces)
tabsToSpaces
- a TabsToSpaces
valuepublic void addTailFilter(TailFilter tailFilter)
tailFilter
- a TailFilter
valuepublic void addEscapeUnicode(EscapeUnicode escapeUnicode)
escapeUnicode
- an EscapeUnicode
valuepublic void addTokenFilter(TokenFilter tokenFilter)
tokenFilter
- a TokenFilter
valuepublic void addDeleteCharacters(TokenFilter.DeleteCharacters filter)
filter
- a TokenFilter.DeleteCharacters
valuepublic void addContainsRegex(TokenFilter.ContainsRegex filter)
filter
- a TokenFilter.ContainsRegex
valuepublic void addReplaceRegex(TokenFilter.ReplaceRegex filter)
filter
- a TokenFilter.ReplaceRegex
valuepublic void addTrim(TokenFilter.Trim filter)
filter
- a TokenFilter.Trim
valuepublic void addReplaceString(TokenFilter.ReplaceString filter)
filter
- a TokenFilter.ReplaceString
valuepublic void addIgnoreBlank(TokenFilter.IgnoreBlank filter)
filter
- a TokenFilter.IgnoreBlank
valuepublic void setRefid(Reference r) throws BuildException
You must not set another attribute or nest elements inside this element if you make it a reference.
setRefid
in class DataType
r
- the reference to which this instance is associatedBuildException
- if this instance already has been configured.public void add(ChainableReader filter)
filter
- a ChainableReader
valueprotected void dieOnCircularReference(java.util.Stack stk, Project p) throws BuildException
DataType
If one is included, throw a BuildException created by circularReference
.
This implementation is appropriate only for a DataType that cannot hold other DataTypes as children.
The general contract of this method is that it shouldn't do
anything if
is true and
set it to true on exit.checked
dieOnCircularReference
in class DataType
stk
- the stack of references to check.p
- the project to use to dereference the references.BuildException
- on error.