Record Class TypeHierarchy.InheritedMethod

java.lang.Object
java.lang.Record
io.micronaut.sourcegen.model.TypeHierarchy.InheritedMethod
Record Components:
name - The name
overrideParameters - The generic parameter types, as an override sees them
bridgeParameters - The parameter types of the declaration, as a bridge erases them
returnType - The erased return type
genericReturnType - The generic return type
finalMethod - Whether the method is final
packagePrivate - Whether the method is package-private
typeVariables - The names of the type variables the method declares of its own, which shadow those of the supertype and are bound by nothing it is inherited with
Enclosing class:
TypeHierarchy

public static record TypeHierarchy.InheritedMethod(String name, List<TypeDef> overrideParameters, List<TypeDef> bridgeParameters, TypeDef returnType, TypeDef genericReturnType, boolean finalMethod, boolean packagePrivate, List<TypeDef.TypeVariable> typeVariables) extends Record
A method declared by a supertype, as declared: the type variables of the supertype are not substituted.
Since:
2.3
  • Constructor Details

    • InheritedMethod

      public InheritedMethod(String name, List<TypeDef> overrideParameters, List<TypeDef> bridgeParameters, TypeDef returnType, TypeDef genericReturnType, boolean finalMethod, boolean packagePrivate, List<TypeDef.TypeVariable> typeVariables)
      Creates an instance of a InheritedMethod record class.
      Parameters:
      name - the value for the name record component
      overrideParameters - the value for the overrideParameters record component
      bridgeParameters - the value for the bridgeParameters record component
      returnType - the value for the returnType record component
      genericReturnType - the value for the genericReturnType record component
      finalMethod - the value for the finalMethod record component
      packagePrivate - the value for the packagePrivate record component
      typeVariables - the value for the typeVariables record component
  • Method Details

    • 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
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • overrideParameters

      public List<TypeDef> overrideParameters()
      Returns the value of the overrideParameters record component.
      Returns:
      the value of the overrideParameters record component
    • bridgeParameters

      public List<TypeDef> bridgeParameters()
      Returns the value of the bridgeParameters record component.
      Returns:
      the value of the bridgeParameters record component
    • returnType

      public TypeDef returnType()
      Returns the value of the returnType record component.
      Returns:
      the value of the returnType record component
    • genericReturnType

      public TypeDef genericReturnType()
      Returns the value of the genericReturnType record component.
      Returns:
      the value of the genericReturnType record component
    • finalMethod

      public boolean finalMethod()
      Returns the value of the finalMethod record component.
      Returns:
      the value of the finalMethod record component
    • packagePrivate

      public boolean packagePrivate()
      Returns the value of the packagePrivate record component.
      Returns:
      the value of the packagePrivate record component
    • typeVariables

      public List<TypeDef.TypeVariable> typeVariables()
      Returns the value of the typeVariables record component.
      Returns:
      the value of the typeVariables record component