Record Class InferenceSolution.Success
java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.InferenceSolution.Success
- All Implemented Interfaces:
InferenceSolution,TypeSubstitutions.TypeMapper,TypeSubstitutions.TypeParamMapper
- Enclosing interface:
InferenceSolution
public static record InferenceSolution.Success(Map<TypeParameter,ReferenceType> map, AType retType, List<LambdaType> lambdaTypes, Map<AbstractInvoke,InferenceSolution.Success> nested, boolean hasRawArgs, boolean explicit, List<InferenceSolution.RequiredCast> requiredCasts)
extends Record
implements InferenceSolution, TypeSubstitutions.TypeParamMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.InferenceSolution
InferenceSolution.Failure, InferenceSolution.RequiredCast, InferenceSolution.Success -
Constructor Summary
ConstructorsConstructorDescriptionSuccess(Map<TypeParameter, ReferenceType> map, AType retType, List<LambdaType> lambdaTypes, Map<AbstractInvoke, InferenceSolution.Success> nested, boolean hasRawArgs, boolean explicit, List<InferenceSolution.RequiredCast> requiredCasts) Creates an instance of aSuccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexplicit()Returns the value of theexplicitrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasRawArgsrecord component.Returns the value of thelambdaTypesrecord component.map()Returns the value of themaprecord component.mapParam(TypeParameter param) Map the givenTypeParameterto aReferenceType.nested()Returns the value of thenestedrecord component.Returns the value of therequiredCastsrecord component.retType()Returns the value of theretTyperecord component.final StringtoString()Returns a string representation of this record class.booleanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.covers1624.coffeegrinder.type.TypeSubstitutions.TypeMapper
substFuncMethods inherited from interface net.covers1624.coffeegrinder.type.TypeSubstitutions.TypeParamMapper
mapType
-
Constructor Details
-
Success
public Success(Map<TypeParameter, ReferenceType> map, AType retType, List<LambdaType> lambdaTypes, Map<AbstractInvoke, InferenceSolution.Success> nested, boolean hasRawArgs, boolean explicit, List<InferenceSolution.RequiredCast> requiredCasts) Creates an instance of aSuccessrecord class.- Parameters:
map- the value for themaprecord componentretType- the value for theretTyperecord componentlambdaTypes- the value for thelambdaTypesrecord componentnested- the value for thenestedrecord componenthasRawArgs- the value for thehasRawArgsrecord componentexplicit- the value for theexplicitrecord componentrequiredCasts- the value for therequiredCastsrecord component
-
-
Method Details
-
mapParam
Description copied from interface:TypeSubstitutions.TypeParamMapper- Specified by:
mapParamin interfaceTypeSubstitutions.TypeParamMapper- Parameters:
param- The parameter to map.- Returns:
- The result.
-
makeExplicit
-
typesEqual
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-
retType
Returns the value of theretTyperecord component.- Returns:
- the value of the
retTyperecord component
-
lambdaTypes
Returns the value of thelambdaTypesrecord component.- Returns:
- the value of the
lambdaTypesrecord component
-
nested
Returns the value of thenestedrecord component.- Returns:
- the value of the
nestedrecord component
-
hasRawArgs
public boolean hasRawArgs()Returns the value of thehasRawArgsrecord component.- Returns:
- the value of the
hasRawArgsrecord component
-
explicit
public boolean explicit()Returns the value of theexplicitrecord component.- Returns:
- the value of the
explicitrecord component
-
requiredCasts
Returns the value of therequiredCastsrecord component.- Returns:
- the value of the
requiredCastsrecord component
-