Record Class TypeHierarchy.InheritedMethod
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.model.TypeHierarchy.InheritedMethod
- Record Components:
name- The nameoverrideParameters- The generic parameter types, as an override sees thembridgeParameters- The parameter types of the declaration, as a bridge erases themreturnType- The erased return typegenericReturnType- The generic return typefinalMethod- Whether the method is finalpackagePrivate- Whether the method is package-privatetypeVariables- 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 Summary
ConstructorsConstructorDescriptionInheritedMethod(String name, List<TypeDef> overrideParameters, List<TypeDef> bridgeParameters, TypeDef returnType, TypeDef genericReturnType, boolean finalMethod, boolean packagePrivate, List<TypeDef.TypeVariable> typeVariables) Creates an instance of aInheritedMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebridgeParametersrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefinalMethodrecord component.Returns the value of thegenericReturnTyperecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theoverrideParametersrecord component.booleanReturns the value of thepackagePrivaterecord component.Returns the value of thereturnTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeVariablesrecord component.
-
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 aInheritedMethodrecord class.- Parameters:
name- the value for thenamerecord componentoverrideParameters- the value for theoverrideParametersrecord componentbridgeParameters- the value for thebridgeParametersrecord componentreturnType- the value for thereturnTyperecord componentgenericReturnType- the value for thegenericReturnTyperecord componentfinalMethod- the value for thefinalMethodrecord componentpackagePrivate- the value for thepackagePrivaterecord componenttypeVariables- the value for thetypeVariablesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
overrideParameters
Returns the value of theoverrideParametersrecord component.- Returns:
- the value of the
overrideParametersrecord component
-
bridgeParameters
Returns the value of thebridgeParametersrecord component.- Returns:
- the value of the
bridgeParametersrecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
genericReturnType
Returns the value of thegenericReturnTyperecord component.- Returns:
- the value of the
genericReturnTyperecord component
-
finalMethod
public boolean finalMethod()Returns the value of thefinalMethodrecord component.- Returns:
- the value of the
finalMethodrecord component
-
packagePrivate
public boolean packagePrivate()Returns the value of thepackagePrivaterecord component.- Returns:
- the value of the
packagePrivaterecord component
-
typeVariables
Returns the value of thetypeVariablesrecord component.- Returns:
- the value of the
typeVariablesrecord component
-