Interface ClassGenerator

All Known Implementing Classes:
GeneratedClasses

public interface ClassGenerator
Generates new GeneratedClass instances.
Since:
6.0
Author:
Phillip Webb
See Also:
  • Method Details

    • getOrGenerateClass

      GeneratedClass getOrGenerateClass(ClassGenerator.JavaFileGenerator javaFileGenerator, Class<?> target, String featureName)
      Get or generate a new GeneratedClass for a given java file generator, target and feature name.
      Parameters:
      javaFileGenerator - the java file generator
      target - the target of the newly generated class
      featureName - the name of the feature that the generated class supports
      Returns:
      a GeneratedClass instance
    • getOrGenerateClass

      GeneratedClass getOrGenerateClass(ClassGenerator.JavaFileGenerator javaFileGenerator, String target, String featureName)
      Get or generate a new GeneratedClass for a given java file generator, target and feature name.
      Parameters:
      javaFileGenerator - the java file generator
      target - the target of the newly generated class
      featureName - the name of the feature that the generated class supports
      Returns:
      a GeneratedClass instance