Class ClassHasNoFields

  • All Implemented Interfaces:
    Diagnostic

    public class ClassHasNoFields
    extends DiagnosticBase
    Diagnostic, if class has no fields.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassHasNoFields​(java.lang.String className)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String problem()
      returns the potential problem that triggered the message
      java.lang.Object reason()
      returns the reason for the message
      java.lang.String solution()
      suggests a possible solution for the possible problem
      • Methods inherited from class java.lang.Object

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

      • ClassHasNoFields

        public ClassHasNoFields​(java.lang.String className)
    • Method Detail

      • reason

        public java.lang.Object reason()
        Description copied from class: DiagnosticBase
        returns the reason for the message
        Specified by:
        reason in class DiagnosticBase
      • problem

        public java.lang.String problem()
        Description copied from class: DiagnosticBase
        returns the potential problem that triggered the message
        Specified by:
        problem in class DiagnosticBase
      • solution

        public java.lang.String solution()
        Description copied from class: DiagnosticBase
        suggests a possible solution for the possible problem
        Specified by:
        solution in class DiagnosticBase