Record Class CalleeBounds
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.generator.CalleeBounds
- Record Components:
variables- The type variables the invoked method declaresreceiverArguments- The type arguments the receiver binds the variables of the method's class withraw- Whether a bound naming a variable of the method is written raw, rather than withObjectfor the variable
@Internal
public record CalleeBounds(List<TypeDef.TypeVariable> variables, Map<String,TypeDef> receiverArguments, boolean raw)
extends Record
The bounds of the type variables an invoked method declares, as they read where the method is called: a
variable of the caller can have the same name as one of the method, which is out of scope there.
A variable of the method is its bounds - following a bound that is another variable of the method - with the
receiver's type arguments for the variables of its class. A bound that names a variable of the method itself,
`Comparable
- Since:
- 2.3
-
Constructor Summary
ConstructorsConstructorDescriptionCalleeBounds(List<TypeDef.TypeVariable> variables, Map<String, TypeDef> receiverArguments, boolean raw) Creates an instance of aCalleeBoundsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanWhether a type names a variable of the invoked method.A type without the variables of the invoked method: a variable is its bounds, an array one of the arrays of its component's first bound, and a parameterization raw for Java, or with each variable its first bound for Kotlin.booleanraw()Returns the value of therawrecord component.Returns the value of thereceiverArgumentsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariablesrecord component.
-
Constructor Details
-
CalleeBounds
public CalleeBounds(List<TypeDef.TypeVariable> variables, Map<String, TypeDef> receiverArguments, boolean raw) Creates an instance of aCalleeBoundsrecord class.- Parameters:
variables- the value for thevariablesrecord componentreceiverArguments- the value for thereceiverArgumentsrecord componentraw- the value for therawrecord component
-
-
Method Details
-
names
Whether a type names a variable of the invoked method.- Parameters:
type- The type- Returns:
- true where it does
-
of
A type without the variables of the invoked method: a variable is its bounds, an array one of the arrays of its component's first bound, and a parameterization raw for Java, or with each variable its first bound for Kotlin.- Parameters:
type- The type- Returns:
- The types the type is, more than one for a variable of several bounds
-
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. -
variables
-
receiverArguments
Returns the value of thereceiverArgumentsrecord component.- Returns:
- the value of the
receiverArgumentsrecord component
-
raw
-