Class GeneratedClass

java.lang.Object
org.springframework.aot.generate.GeneratedClass

public final class GeneratedClass extends Object
A single generated class.
Since:
6.0
Author:
Phillip Webb, Stephane Nicoll
See Also:
  • Method Details

    • reserveMethodNames

      public void reserveMethodNames(String... reservedMethodNames)
      Update this instance with a set of reserved method names that should not be used for generated methods. Reserved names are often needed when a generated class implements a specific interface.
      Parameters:
      reservedMethodNames - the reserved method names
    • getName

      public org.springframework.javapoet.ClassName getName()
      Return the name of the generated class.
      Returns:
      the name of the generated class
    • getMethods

      public GeneratedMethods getMethods()
      Return generated methods for this instance.
      Returns:
      the generated methods