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 Summary

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

    Constructors
    Modifier
    Constructor
    Description
    private
    Constructs a stack node for a method definition.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) DetailAST
    Returns the overriding method definition AST.
    (package private) boolean
    Determines whether the overriding method has a call to the super method.
    (package private) void
    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 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

      Records that the overriding method has a call to the super method.
    • isCallingSuper

      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

      Returns the overriding method definition AST.
      Returns:
      the overriding method definition AST.