Record Class GenericTransform.ReturnTypeInfo
java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.GenericTransform.ReturnTypeInfo
- Enclosing class:
GenericTransform
public static record GenericTransform.ReturnTypeInfo(@Nullable AType type, @Nullable ReferenceType cast, @Nullable ReferenceType explicitTypeHint, net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.GenericTransform.Pass pass)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReturnTypeInfo(@Nullable AType type, @Nullable ReferenceType cast, @Nullable ReferenceType explicitTypeHint, net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.GenericTransform.Pass pass) Creates an instance of aReturnTypeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionassignedTo(AType type, net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.GenericTransform.Pass pass) @Nullable ReferenceTypecast()Returns the value of thecastrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable ATypeexplicitHint(ReferenceType hint) @Nullable ReferenceTypeReturns the value of theexplicitTypeHintrecord component.final inthashCode()Returns a hash code value for this object.net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.GenericTransform.Passpass()Returns the value of thepassrecord component.preBind()final StringtoString()Returns a string representation of this record class.@Nullable ATypetype()Returns the value of thetyperecord component.withCast(ReferenceType cast) wrapArrayTarget(ArrayType rawArrayType)
-
Field Details
-
NONE
-
-
Constructor Details
-
ReturnTypeInfo
public ReturnTypeInfo(@Nullable @Nullable AType type, @Nullable @Nullable ReferenceType cast, @Nullable @Nullable ReferenceType explicitTypeHint, net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.GenericTransform.Pass pass) Creates an instance of aReturnTypeInforecord class.- Parameters:
type- the value for thetyperecord componentcast- the value for thecastrecord componentexplicitTypeHint- the value for theexplicitTypeHintrecord componentpass- the value for thepassrecord component
-
-
Method Details
-
assignedTo
public static GenericTransform.ReturnTypeInfo assignedTo(AType type, net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.GenericTransform.Pass pass) -
explicitHint
-
preBind
-
expectedType
-
withCast
-
wrapArrayTarget
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
cast
Returns the value of thecastrecord component.- Returns:
- the value of the
castrecord component
-
explicitTypeHint
Returns the value of theexplicitTypeHintrecord component.- Returns:
- the value of the
explicitTypeHintrecord component
-
pass
public net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.GenericTransform.Pass pass()Returns the value of thepassrecord component.- Returns:
- the value of the
passrecord component
-