Class AbstractSuperCheck.MethodNode

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean callingSuper
      True if the overriding method calls the super method.
      private DetailAST method
      Method definition.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MethodNode​(DetailAST ast)
      Constructs a stack node for a method definition.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DetailAST getMethod()
      Returns the overriding method definition AST.
      boolean isCallingSuper()
      Determines whether the overriding method has a call to the super method.
      void setCallingSuper()
      Records that the overriding method has a call to the super method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • callingSuper

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

      • MethodNode

        private 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.