Class FinalClassCheck.ClassDesc

    • Constructor Detail

      • ClassDesc

        private 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

      • 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.
      • isHasDeclaredConstructor

        private boolean isHasDeclaredConstructor()
        Does class have implicit constructor.
        Returns:
        true if class have implicit constructor
      • isDeclaredAsPrivate

        private boolean isDeclaredAsPrivate()
        Does class is private.
        Returns:
        true if class is private