Class SalaryCalculatorAnalyzer
java.lang.Object
com.github.javaparser.ast.visitor.VoidVisitorAdapter<OutputCollector>
analyzer.exercises.salarycalculator.SalaryCalculatorAnalyzer
- All Implemented Interfaces:
Analyzer
,com.github.javaparser.ast.visitor.VoidVisitor<OutputCollector>
public class SalaryCalculatorAnalyzer
extends com.github.javaparser.ast.visitor.VoidVisitorAdapter<OutputCollector>
implements Analyzer
The
SalaryCalculatorAnalyzer
is the analyzer implementation for the salary-calculator
practice exercise.
It extends from the VoidVisitorAdapter
and uses the visitor pattern to traverse each compilation unit.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
analyze
(Solution solution, OutputCollector output) Analyze the given solution and append analysis results to the given output..void
visit
(com.github.javaparser.ast.body.MethodDeclaration node, OutputCollector output) Methods inherited from class com.github.javaparser.ast.visitor.VoidVisitorAdapter
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
SalaryCalculatorAnalyzer
public SalaryCalculatorAnalyzer()
-
-
Method Details
-
analyze
Description copied from interface:Analyzer
Analyze the given solution and append analysis results to the given output.. Theanalyze
method of each analyzer is invoked once for the whole submitted solution. -
visit
- Specified by:
visit
in interfacecom.github.javaparser.ast.visitor.VoidVisitor<OutputCollector>
- Overrides:
visit
in classcom.github.javaparser.ast.visitor.VoidVisitorAdapter<OutputCollector>
-