class_docstr: Run suites for Java. 
docstr: Returns the resulting benchmarks for a given suite. 
docstr_tok: ["Returns","the","resulting","benchmarks","for","a","given","suite","."]
code: def suite(self, name):
      """Returns the resulting benchmarks for a given suite."""
      # update .m2 directory, which installs target jars
      self.build.build()
  
      suite_cmd = JavaMicrobenchmarkHarnessCommand(
          self.build, self.benchmark_filter
      )
  
      # Ensure there will be data
      benchmark_names = suite_cmd.list_benchmarks()
      if not benchmark_names:
          return None
  
      # TODO: support `repetition_min_time`
      results = suite_cmd.results(repetitions=self.repetitions)
      benchmarks = JavaMicrobenchmarkHarness.from_json(results)
      return BenchmarkSuite(name, benchmarks)
  
imports: import glob
  import json
  import os
  import re
  from .core import BenchmarkSuite
  from .google import GoogleBenchmarkCommand, GoogleBenchmark
  from .jmh import JavaMicrobenchmarkHarnessCommand, JavaMicrobenchmarkHarness
  from ..lang.cpp import CppCMakeDefinition, CppConfiguration
  from ..lang.java import JavaMavenDefinition, JavaConfiguration
  from ..utils.cmake import CMakeBuild
  from ..utils.maven import MavenBuild
  from ..utils.logger import logger
label_desc: Use image node_id 3 for calling the JavaBenchmarkRunner obj's underlying member method code with example usage: obj.suite(name) and returns: BenchmarkSuite, None