Class ClassAnnotation

    • Constructor Detail

      • ClassAnnotation

        public ClassAnnotation​(@DottedClassName
                               java.lang.String className)
        Constructor.
        Parameters:
        className - the name of the class
      • ClassAnnotation

        public ClassAnnotation​(@DottedClassName
                               java.lang.String className,
                               java.lang.String sourceFileName)
    • Method Detail

      • fromClassDescriptor

        public static ClassAnnotation fromClassDescriptor​(ClassDescriptor classDescriptor)
        Factory method to create a ClassAnnotation from a ClassDescriptor.
        Parameters:
        classDescriptor - the ClassDescriptor
        Returns:
        the ClassAnnotation
      • accept

        public void accept​(BugAnnotationVisitor visitor)
        Description copied from interface: BugAnnotation
        Accept a BugAnnotationVisitor.
        Parameters:
        visitor - the visitor to accept
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • writeXML

        public void writeXML​(XMLOutput xmlOutput)
                      throws java.io.IOException
        Description copied from interface: XMLWriteable
        Write this object to given XMLOutput.
        Parameters:
        xmlOutput - the XMLOutput for the document
        Throws:
        java.io.IOException
      • writeXML

        public void writeXML​(XMLOutput xmlOutput,
                             boolean addMessages,
                             boolean isPrimary)
                      throws java.io.IOException
        Throws:
        java.io.IOException