Package analyzer.exercises.lasagna
Class LasagnaAnalyzer
java.lang.Object
com.github.javaparser.ast.visitor.VoidVisitorAdapter<OutputCollector>
analyzer.exercises.lasagna.LasagnaAnalyzer
- All Implemented Interfaces:
Analyzer
,com.github.javaparser.ast.visitor.VoidVisitor<OutputCollector>
public class LasagnaAnalyzer
extends com.github.javaparser.ast.visitor.VoidVisitorAdapter<OutputCollector>
implements Analyzer
The
LasagnaAnalyzer
is the analyzer implementation for the lasagna
concept 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) void
visit
(com.github.javaparser.ast.comments.LineComment 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
-
Constructor Details
-
LasagnaAnalyzer
public LasagnaAnalyzer()
-
-
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>
-
visit
- Specified by:
visit
in interfacecom.github.javaparser.ast.visitor.VoidVisitor<OutputCollector>
- Overrides:
visit
in classcom.github.javaparser.ast.visitor.VoidVisitorAdapter<OutputCollector>
-