Class InferenceSolution
java.lang.Object
net.covers1624.coffeegrinder.bytecode.transform.transformers.generics.InferenceSolution
- All Implemented Interfaces:
TypeSubstitutions.TypeMapper,TypeSubstitutions.TypeParamMapper
Created by covers1624 on 29/8/22.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal @Nullable Stringfinal booleanfinal List<org.apache.commons.lang3.tuple.Pair<MethodDecl, ReferenceType>> final Map<TypeParameter, ReferenceType> final Map<AbstractInvoke, InferenceSolution> final @Nullable ReferenceTypefinal AType -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic InferenceSolutionbooleanmapParam(TypeParameter param) Map the givenTypeParameterto aReferenceType.polyFailed(ReferenceType targetType) static InferenceSolutionsuccess(Map<TypeParameter, ReferenceType> map, AType retType, Map<AbstractInvoke, InferenceSolution> nested, List<org.apache.commons.lang3.tuple.Pair<MethodDecl, ReferenceType>> lambdaTypes, boolean hasRawArgs) Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.covers1624.coffeegrinder.type.TypeSubstitutions.TypeMapper
substFuncMethods inherited from interface net.covers1624.coffeegrinder.type.TypeSubstitutions.TypeParamMapper
mapType
-
Field Details
-
map
-
retType
-
lambdaTypes
-
nested
-
failureReason
-
hasRawArgs
public final boolean hasRawArgs -
explicit
public final boolean explicit -
polyFailed
-
-
Method Details
-
failure
-
success
public static InferenceSolution success(Map<TypeParameter, ReferenceType> map, AType retType, Map<AbstractInvoke, InferenceSolution> nested, List<org.apache.commons.lang3.tuple.Pair<MethodDecl, ReferenceType>> lambdaTypes, boolean hasRawArgs) -
mapParam
Description copied from interface:TypeSubstitutions.TypeParamMapper- Specified by:
mapParamin interfaceTypeSubstitutions.TypeParamMapper- Parameters:
param- The parameter to map.- Returns:
- The result.
-
makeExplicit
-
polyFailed
-
hasFailed
public boolean hasFailed() -
equals
-