java.lang.Object
java.lang.Record
io.quarkus.annotation.processor.documentation.config.discovery.ResolvedType

public record ResolvedType(TypeMirror wrapperType, TypeMirror unwrappedType, String binaryName, String qualifiedName, String simplifiedName, boolean isPrimitive, boolean isMap, boolean isList, boolean isOptional, boolean isSecret, boolean isDeclared, boolean isInterface, boolean isClass, boolean isEnum, boolean isDuration, boolean isConfigGroup) extends Record
  • Constructor Details

    • ResolvedType

      public ResolvedType(TypeMirror wrapperType, TypeMirror unwrappedType, String binaryName, String qualifiedName, String simplifiedName, boolean isPrimitive, boolean isMap, boolean isList, boolean isOptional, boolean isSecret, boolean isDeclared, boolean isInterface, boolean isClass, boolean isEnum, boolean isDuration, boolean isConfigGroup)
      Creates an instance of a ResolvedType record class.
      Parameters:
      wrapperType - the value for the wrapperType record component
      unwrappedType - the value for the unwrappedType record component
      binaryName - the value for the binaryName record component
      qualifiedName - the value for the qualifiedName record component
      simplifiedName - the value for the simplifiedName record component
      isPrimitive - the value for the isPrimitive record component
      isMap - the value for the isMap record component
      isList - the value for the isList record component
      isOptional - the value for the isOptional record component
      isSecret - the value for the isSecret record component
      isDeclared - the value for the isDeclared record component
      isInterface - the value for the isInterface record component
      isClass - the value for the isClass record component
      isEnum - the value for the isEnum record component
      isDuration - the value for the isDuration record component
      isConfigGroup - the value for the isConfigGroup record component
  • Method Details

    • unwrappedTypeElement

      public TypeElement unwrappedTypeElement()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • ofPrimitive

      public static ResolvedType ofPrimitive(TypeMirror unwrappedType, String typeName)
    • ofDeclaredType

      public static ResolvedType ofDeclaredType(TypeMirror type, String binaryName, String qualifiedName, String simpleName, boolean isInterface, boolean isClass, boolean isEnum, boolean isDuration, boolean isConfigGroup)
    • makeList

      public static ResolvedType makeList(TypeMirror type, ResolvedType unwrappedResolvedType)
    • makeOptional

      public static ResolvedType makeOptional(ResolvedType unwrappedResolvedType)
    • makeSecret

      public static ResolvedType makeSecret(ResolvedType unwrappedResolvedType)
    • makeMap

      public static ResolvedType makeMap(TypeMirror type, ResolvedType unwrappedResolvedType)
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • wrapperType

      public TypeMirror wrapperType()
      Returns the value of the wrapperType record component.
      Returns:
      the value of the wrapperType record component
    • unwrappedType

      public TypeMirror unwrappedType()
      Returns the value of the unwrappedType record component.
      Returns:
      the value of the unwrappedType record component
    • binaryName

      public String binaryName()
      Returns the value of the binaryName record component.
      Returns:
      the value of the binaryName record component
    • qualifiedName

      public String qualifiedName()
      Returns the value of the qualifiedName record component.
      Returns:
      the value of the qualifiedName record component
    • simplifiedName

      public String simplifiedName()
      Returns the value of the simplifiedName record component.
      Returns:
      the value of the simplifiedName record component
    • isPrimitive

      public boolean isPrimitive()
      Returns the value of the isPrimitive record component.
      Returns:
      the value of the isPrimitive record component
    • isMap

      public boolean isMap()
      Returns the value of the isMap record component.
      Returns:
      the value of the isMap record component
    • isList

      public boolean isList()
      Returns the value of the isList record component.
      Returns:
      the value of the isList record component
    • isOptional

      public boolean isOptional()
      Returns the value of the isOptional record component.
      Returns:
      the value of the isOptional record component
    • isSecret

      public boolean isSecret()
      Returns the value of the isSecret record component.
      Returns:
      the value of the isSecret record component
    • isDeclared

      public boolean isDeclared()
      Returns the value of the isDeclared record component.
      Returns:
      the value of the isDeclared record component
    • isInterface

      public boolean isInterface()
      Returns the value of the isInterface record component.
      Returns:
      the value of the isInterface record component
    • isClass

      public boolean isClass()
      Returns the value of the isClass record component.
      Returns:
      the value of the isClass record component
    • isEnum

      public boolean isEnum()
      Returns the value of the isEnum record component.
      Returns:
      the value of the isEnum record component
    • isDuration

      public boolean isDuration()
      Returns the value of the isDuration record component.
      Returns:
      the value of the isDuration record component
    • isConfigGroup

      public boolean isConfigGroup()
      Returns the value of the isConfigGroup record component.
      Returns:
      the value of the isConfigGroup record component