Class AbstractSuperCheck.MethodNode
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheck.MethodNode
- Enclosing class:
- AbstractSuperCheck
Stack node for a method definition and a record of
whether the method has a call to the super method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
True if the overriding method calls the super method.private final DetailAST
Method definition. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MethodNode
(DetailAST ast) Constructs a stack node for a method definition. -
Method Summary
Modifier and TypeMethodDescriptionReturns the overriding method definition AST.boolean
Determines whether the overriding method has a call to the super method.void
Records that the overriding method has a call to the super method.
-
Field Details
-
method
Method definition. -
callingSuper
True if the overriding method calls the super method.
-
-
Constructor Details
-
MethodNode
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
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.
-