Class FinalClassCheck.ClassDesc

    • Constructor Detail

      • ClassDesc

        ClassDesc​(String qualifiedName,
                  int depth,
                  DetailAST classAst)
        Create a new ClassDesc instance.
        Parameters:
        qualifiedName - qualified class name(with package)
        depth - class nesting level
        classAst - classAst node
    • Method Detail

      • isWithPrivateCtor

        private boolean isWithPrivateCtor()
        Does class have private ctors.
        Returns:
        true if class has private ctors
      • isWithNonPrivateCtor

        private boolean isWithNonPrivateCtor()
        Does class have non-private ctors.
        Returns:
        true if class has non-private ctors
      • isWithNestedSubclass

        private boolean isWithNestedSubclass()
        Does class have nested subclass.
        Returns:
        true if class has nested subclass
      • isDeclaredAsFinal

        private boolean isDeclaredAsFinal()
        Is class declared as final.
        Returns:
        true if class is declared as final
      • isDeclaredAsAbstract

        private boolean isDeclaredAsAbstract()
        Is class declared as abstract.
        Returns:
        true if class is declared as final
      • isSuperClassOfAnonymousInnerClass

        private boolean isSuperClassOfAnonymousInnerClass()
        Whether the class is the super class of an anonymous inner class.
        Returns:
        true if the class is the super class of an anonymous inner class.