Class AnnotationMatcher

  • All Implemented Interfaces:
    Matcher

    public class AnnotationMatcher
    extends java.lang.Object
    implements Matcher
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private NameMatch annotationName  
      private static org.slf4j.Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationMatcher​(java.lang.String annotationName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean match​(BugInstance bugInstance)
      Determine whether or not the given BugInstance has the feature this Matcher tests for.
      java.lang.String toString()  
      void writeXML​(XMLOutput xmlOutput, boolean disabled)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • LOG

        private static final org.slf4j.Logger LOG
      • annotationName

        private final NameMatch annotationName
    • Constructor Detail

      • AnnotationMatcher

        public AnnotationMatcher​(java.lang.String annotationName)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • match

        public boolean match​(BugInstance bugInstance)
        Description copied from interface: Matcher
        Determine whether or not the given BugInstance has the feature this Matcher tests for.
        Specified by:
        match in interface Matcher
        Parameters:
        bugInstance - the BugInstance
        Returns:
        true if the BugInstance matches, false if not
      • writeXML

        public void writeXML​(XMLOutput xmlOutput,
                             boolean disabled)
                      throws java.io.IOException
        Specified by:
        writeXML in interface Matcher
        Throws:
        java.io.IOException