TypeInference
The API exposed by the TypeInference subsystem.
Author
Federico Tomassetti
Functions
Link copied to clipboard
open fun functionalInterfaceParameterizationInference(lambdaExpr: LambdaExpr, interfaceDeclaration: ResolvedInterfaceDeclaration)
Link copied to clipboard
open fun instantiationInference(methodCallExpr: MethodCallExpr, methodDeclaration: ResolvedMethodDeclaration): Optional<InstantiationSet>
Public instance methods
open fun instantiationInference(argumentExpressions: List<Expression>, methodDeclaration: ResolvedMethodDeclaration): Optional<InstantiationSet>
Link copied to clipboard
open fun invocationApplicabilityInference(methodCallExpr: MethodCallExpr, methodDeclaration: ResolvedMethodDeclaration): Boolean
Determine whether a potentially applicable generic method m is applicable for a method invocation that provides no explicit type arguments.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun moreSpecificMethodInference(methodCall: MethodCallExpr, m1: ResolvedMethodDeclaration, m2: ResolvedMethodDeclaration): Boolean
Return if m2 is more specific than m1
Link copied to clipboard
open fun toMethodUsage(call: MethodCallExpr, methodDeclaration: ResolvedMethodDeclaration, typeSolver: TypeSolver): MethodUsage
Public static methods