Class AbstractSuperCheck.MethodNode

    • Field Detail

      • callingSuper

        private boolean callingSuper
        True if the overriding method calls the super method.
    • Constructor Detail

      • MethodNode

        MethodNode​(DetailAST ast)
        Constructs a stack node for a method definition.
        Parameters:
        ast - AST for the method definition.
    • Method Detail

      • setCallingSuper

        public void setCallingSuper()
        Records that the overriding method has a call to the super method.
      • isCallingSuper

        public boolean isCallingSuper()
        Determines whether the overriding method has a call to the super method.
        Returns:
        true if the overriding method has a call to the super method.
      • getMethod

        public DetailAST getMethod()
        Returns the overriding method definition AST.
        Returns:
        the overriding method definition AST.