Class GeneratedTypeReference

java.lang.Object
org.springframework.aot.hint.AbstractTypeReference
org.springframework.aot.generator.GeneratedTypeReference
All Implemented Interfaces:
TypeReference

public final class GeneratedTypeReference extends AbstractTypeReference
A TypeReference for a generated type.
Since:
6.0
Author:
Stephane Nicoll
  • Method Details

    • of

      public static GeneratedTypeReference of(org.springframework.javapoet.ClassName className)
    • getCanonicalName

      public String getCanonicalName()
      Description copied from interface: TypeReference
      Return the canonical name of this type reference.
      Returns:
      the canonical name
    • getPackageName

      public String getPackageName()
      Description copied from interface: TypeReference
      Return the package name of this type.
      Returns:
      the package name
    • getSimpleName

      public String getSimpleName()
      Description copied from interface: TypeReference
      Return the simple name of this type reference.
      Returns:
      the simple name
    • getEnclosingType

      public TypeReference getEnclosingType()
      Description copied from interface: TypeReference
      Return the enclosing type reference, or null if this type reference does not have an enclosing type.
      Returns:
      the enclosing type, if any