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