Class AbstractSuperCheck.MethodNode

java.lang.Object
com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheck.MethodNode
Enclosing class:
AbstractSuperCheck

private static final class AbstractSuperCheck.MethodNode extends Object
Stack node for a method definition and a record of whether the method has a call to the super method.
  • Field Details

    • method

      private final DetailAST method
      Method definition.
    • callingSuper

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

    • MethodNode

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

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