Package com.io7m.cedarbridge.codegen.api

# Class CBCodeGenerators

java.lang.Object
com.io7m.cedarbridge.codegen.api.CBCodeGenerators

All Implemented Interfaces:
  `CBCodeGeneratorDirectoryType`

public final class CBCodeGenerators extends Object implements CBCodeGeneratorDirectoryType
A directory of code generators.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBCodeGenerators()`
  Construct a directory, loading available generators using `ServiceLoader`.
  `CBCodeGenerators(List<CBCodeGeneratorFactoryType> inGenerators)`
  Construct a directory using the given code generators.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<CBCodeGeneratorFactoryType>`
  `availableGenerators()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface com.io7m.cedarbridge.codegen.api.CBCodeGeneratorDirectoryType

  `findByLanguageName`

- ## Constructor Details

  - ### CBCodeGenerators

    public CBCodeGenerators(List<CBCodeGeneratorFactoryType> inGenerators)
    Construct a directory using the given code generators.
    Parameters:
      `inGenerators` - The generators

  - ### CBCodeGenerators

    public CBCodeGenerators()
    Construct a directory, loading available generators using `ServiceLoader`.

- ## Method Details

  - ### availableGenerators

    public List<CBCodeGeneratorFactoryType> availableGenerators()
    Specified by:
      `availableGenerators` in interface `CBCodeGeneratorDirectoryType`
    Returns:
      The available code generators