test_class.declarator: metadata
test_class.modifier: private
test_class.original_string: private CharStream metadata;
test_class.type: CharStream
test_class.var_name: metadata
test_class.file: org.eclipse.winery.crawler/src/test/java/org/eclipse/winery/crawler/chefcookbooks/ChefCookbookAnalyzerTest.java
test_class.identifier: ChefCookbookAnalyzerTest
test_case.body: @Test
      public void testCompileMetadata() {
          List<ChefCookbookConfiguration> cookbookConfigs;
          CookbookParseResult extractedCookbookConfigs = new CookbookParseResult("openssh");
          extractedCookbookConfigs = ChefCookbookAnalyzer.compile(metadata, extractedCookbookConfigs);
          cookbookConfigs = extractedCookbookConfigs.getAllConfigsAsList();
          assertEquals(4, cookbookConfigs.size());
  
          for (int count = 0; count < cookbookConfigs.size(); count++) {
              assertEquals("openssh", cookbookConfigs.get(count).getName());
              assertEquals("Installs and configures OpenSSH client and daemon", cookbookConfigs.get(count).getDescription());
              assertTrue(cookbookConfigs.get(count).getDepends().containsKey("iptables"));
          }
  
          assertTrue(extractedCookbookConfigs.getCookbookConfigs().containsKey("aix"));
      }
test_case.class_method_signature: ChefCookbookAnalyzerTest.testCompileMetadata()
test_case.full_signature: @Test public void testCompileMetadata()
test_case.identifier: testCompileMetadata
test_case.invocations: compile getAllConfigsAsList assertEquals size size assertEquals getName get assertEquals getDescription get assertTrue containsKey getDepends get assertTrue containsKey getCookbookConfigs
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCompileMetadata()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(ChefCookbookAnalyzer.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(ChefCookbookAnalyzer.class.getName());
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: org.eclipse.winery.crawler/src/main/java/org/eclipse/winery/crawler/chefcookbooks/ChefCookbookAnalyzer.java
focal_class.identifier: ChefCookbookAnalyzer
focal_class.class_method_signature: ChefCookbookAnalyzer.main()
focal_class.full_signature: public void main()
focal_class.identifier: main
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void main()
focal_class.class_method_signature: ChefCookbookAnalyzer.compileCookbook(CookbookParseResult cookbookParseResult, boolean saveToToscaRepo)
focal_class.full_signature: public CookbookParseResult compileCookbook(CookbookParseResult cookbookParseResult, boolean saveToToscaRepo)
focal_class.identifier: compileCookbook
focal_class.modifiers: public
focal_class.parameters: (CookbookParseResult cookbookParseResult, boolean saveToToscaRepo)
focal_class.return: CookbookParseResult
focal_class.signature: CookbookParseResult compileCookbook(CookbookParseResult cookbookParseResult, boolean saveToToscaRepo)
focal_class.class_method_signature: ChefCookbookAnalyzer.compile(CharStream input, CookbookParseResult cookbookConfigs)
focal_class.full_signature: public static CookbookParseResult compile(CharStream input, CookbookParseResult cookbookConfigs)
focal_class.identifier: compile
focal_class.modifiers: public static
focal_class.parameters: (CharStream input, CookbookParseResult cookbookConfigs)
focal_class.return: CookbookParseResult
focal_class.signature: CookbookParseResult compile(CharStream input, CookbookParseResult cookbookConfigs)
focal_class.class_method_signature: ChefCookbookAnalyzer.returnComponentTypesFromMetadata(CookbookParseResult cookbookConfigs)
focal_class.full_signature: private CookbookParseResult returnComponentTypesFromMetadata(CookbookParseResult cookbookConfigs)
focal_class.identifier: returnComponentTypesFromMetadata
focal_class.modifiers: private
focal_class.parameters: (CookbookParseResult cookbookConfigs)
focal_class.return: CookbookParseResult
focal_class.signature: CookbookParseResult returnComponentTypesFromMetadata(CookbookParseResult cookbookConfigs)
focal_class.class_method_signature: ChefCookbookAnalyzer.returnComponentTypesFromAttributes(CookbookParseResult cookbookConfigs)
focal_class.full_signature: private CookbookParseResult returnComponentTypesFromAttributes(CookbookParseResult cookbookConfigs)
focal_class.identifier: returnComponentTypesFromAttributes
focal_class.modifiers: private
focal_class.parameters: (CookbookParseResult cookbookConfigs)
focal_class.return: CookbookParseResult
focal_class.signature: CookbookParseResult returnComponentTypesFromAttributes(CookbookParseResult cookbookConfigs)
focal_class.class_method_signature: ChefCookbookAnalyzer.returnComponentTypesFromRecipes(CookbookParseResult cookbookConfigs)
focal_class.full_signature: private CookbookParseResult returnComponentTypesFromRecipes(CookbookParseResult cookbookConfigs)
focal_class.identifier: returnComponentTypesFromRecipes
focal_class.modifiers: private
focal_class.parameters: (CookbookParseResult cookbookConfigs)
focal_class.return: CookbookParseResult
focal_class.signature: CookbookParseResult returnComponentTypesFromRecipes(CookbookParseResult cookbookConfigs)
focal_class.class_method_signature: ChefCookbookAnalyzer.getParseResultFromFile(CookbookParseResult cookbookConfigs, String rbFilePath)
focal_class.full_signature: public static CookbookParseResult getParseResultFromFile(CookbookParseResult cookbookConfigs, String rbFilePath)
focal_class.identifier: getParseResultFromFile
focal_class.modifiers: public static
focal_class.parameters: (CookbookParseResult cookbookConfigs, String rbFilePath)
focal_class.return: CookbookParseResult
focal_class.signature: CookbookParseResult getParseResultFromFile(CookbookParseResult cookbookConfigs, String rbFilePath)
focal_class.class_method_signature: ChefCookbookAnalyzer.addPlatformVersionInformationFromKitchen(CookbookParseResult cookbookConfigs)
focal_class.full_signature: private CookbookParseResult addPlatformVersionInformationFromKitchen(CookbookParseResult cookbookConfigs)
focal_class.identifier: addPlatformVersionInformationFromKitchen
focal_class.modifiers: private
focal_class.parameters: (CookbookParseResult cookbookConfigs)
focal_class.return: CookbookParseResult
focal_class.signature: CookbookParseResult addPlatformVersionInformationFromKitchen(CookbookParseResult cookbookConfigs)
focal_method.body: public static CookbookParseResult compile(CharStream input, CookbookParseResult cookbookConfigs) {
          CookbookParseResult extractedCookbookConfigs;
          ChefDSLLexer chefDSLLexer = new ChefDSLLexer(input);
          CommonTokenStream commonTokenStream = new CommonTokenStream(chefDSLLexer);
          ChefDSLParser chefDSLParser = new ChefDSLParser(commonTokenStream);
          
          CookbookVisitor cookbookVisitor = new CookbookVisitor(cookbookConfigs);
          extractedCookbookConfigs = cookbookVisitor.visit(chefDSLParser.program());
          return extractedCookbookConfigs;
          
      }
focal_method.class_method_signature: ChefCookbookAnalyzer.compile(CharStream input, CookbookParseResult cookbookConfigs)
focal_method.full_signature: public static CookbookParseResult compile(CharStream input, CookbookParseResult cookbookConfigs)
focal_method.identifier: compile
focal_method.invocations: visit program
focal_method.modifiers: public static
focal_method.parameters: (CharStream input, CookbookParseResult cookbookConfigs)
focal_method.return: CookbookParseResult
focal_method.signature: CookbookParseResult compile(CharStream input, CookbookParseResult cookbookConfigs)