Package analyzer.exercises.leap
Class LeapAnalyzer
java.lang.Object
com.github.javaparser.ast.visitor.VoidVisitorAdapter<OutputCollector>
analyzer.exercises.leap.LeapAnalyzer
- All Implemented Interfaces:
Analyzer
,com.github.javaparser.ast.visitor.VoidVisitor<OutputCollector>
public class LeapAnalyzer
extends com.github.javaparser.ast.visitor.VoidVisitorAdapter<OutputCollector>
implements Analyzer
The
LeapAnalyzer
is the analyzer implementation for the leap
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) void
visit
(com.github.javaparser.ast.CompilationUnit node, OutputCollector output) void
visit
(com.github.javaparser.ast.expr.ConditionalExpr node, OutputCollector output) void
visit
(com.github.javaparser.ast.expr.IntegerLiteralExpr node, OutputCollector output) void
visit
(com.github.javaparser.ast.ImportDeclaration node, OutputCollector output) void
visit
(com.github.javaparser.ast.stmt.IfStmt 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
-
Constructor Details
-
LeapAnalyzer
public LeapAnalyzer()
-
-
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>
-
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>
-
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>
-