Class NeedForSpeedAnalyzer

java.lang.Object
analyzer.exercises.needforspeed.NeedForSpeedAnalyzer
All Implemented Interfaces:
Analyzer

public class NeedForSpeedAnalyzer extends Object implements Analyzer
The NeedForSpeedAnalyzer is the analyzer implementation for the need-for-speed practice exercise. It has two subclasses NeedForSpeedClassAnalyzer and RaceTrackClassAnalyzer that extend the VoidVisitorAdapter and use the visitor pattern to traverse each compilation unit.
See Also:
  • Constructor Details

    • NeedForSpeedAnalyzer

      public NeedForSpeedAnalyzer()
  • Method Details

    • analyze

      public void analyze(Solution solution, OutputCollector output)
      Description copied from interface: Analyzer
      Analyze the given solution and append analysis results to the given output.. The analyze method of each analyzer is invoked once for the whole submitted solution.
      Specified by:
      analyze in interface Analyzer
      Parameters:
      solution - The solution that should be analyzed.
      output - The output collector instance used to collect analyzer results. This instance is shared across all analyzers, and should be used to add comments and tags, or set a summary.