Package edu.umd.cs.findbugs.filter
Class CompoundMatcher
- java.lang.Object
-
- edu.umd.cs.findbugs.filter.CompoundMatcher
-
- All Implemented Interfaces:
Matcher
- Direct Known Subclasses:
AndMatcher,NotMatcher,OrMatcher
public abstract class CompoundMatcher extends java.lang.Object implements Matcher
-
-
Constructor Summary
Constructors Constructor Description CompoundMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(Matcher child)java.util.Iterator<Matcher>childIterator()protected voidclear()booleanequals(java.lang.Object o)java.util.Collection<Matcher>getChildren()inthashCode()intmaxChildren()protected intnumberChildren()protected voidremoveChild(Matcher child)java.lang.StringtoString()voidwriteChildrenXML(XMLOutput xmlOutput)
-
-
-
Field Detail
-
children
protected java.util.LinkedHashSet<Matcher> children
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
numberChildren
protected int numberChildren()
-
addChild
public void addChild(Matcher child)
-
removeChild
protected void removeChild(Matcher child)
-
clear
protected void clear()
-
getChildren
public java.util.Collection<Matcher> getChildren()
-
childIterator
public java.util.Iterator<Matcher> childIterator()
-
writeChildrenXML
public void writeChildrenXML(XMLOutput xmlOutput) throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
maxChildren
public int maxChildren()
-
-