public class TypeInference extends Object
| Constructor and Description |
|---|
TypeInference(TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
functionalInterfaceParameterizationInference(com.github.javaparser.ast.expr.LambdaExpr lambdaExpr,
com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration interfaceDeclaration) |
Optional<InstantiationSet> |
instantiationInference(List<com.github.javaparser.ast.expr.Expression> argumentExpressions,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration methodDeclaration) |
Optional<InstantiationSet> |
instantiationInference(com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration methodDeclaration) |
boolean |
invocationApplicabilityInference(com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration methodDeclaration)
Determine whether a potentially applicable generic method m is applicable for a method invocation that
provides no explicit type arguments.
|
void |
invocationTypeInference() |
BoundSet |
invocationTypeInferenceBoundsSetB3() |
boolean |
moreSpecificMethodInference(com.github.javaparser.ast.expr.MethodCallExpr methodCall,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration m1,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration m2)
Return if m2 is more specific than m1
|
static com.github.javaparser.resolution.MethodUsage |
toMethodUsage(com.github.javaparser.ast.expr.MethodCallExpr call,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration methodDeclaration,
TypeSolver typeSolver) |
public TypeInference(TypeSolver typeSolver)
public static com.github.javaparser.resolution.MethodUsage toMethodUsage(com.github.javaparser.ast.expr.MethodCallExpr call,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration methodDeclaration,
TypeSolver typeSolver)
public Optional<InstantiationSet> instantiationInference(com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr, com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration methodDeclaration)
public Optional<InstantiationSet> instantiationInference(List<com.github.javaparser.ast.expr.Expression> argumentExpressions, com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration methodDeclaration)
public boolean invocationApplicabilityInference(com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration methodDeclaration)
public BoundSet invocationTypeInferenceBoundsSetB3()
public void invocationTypeInference()
public void functionalInterfaceParameterizationInference(com.github.javaparser.ast.expr.LambdaExpr lambdaExpr,
com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration interfaceDeclaration)
public boolean moreSpecificMethodInference(com.github.javaparser.ast.expr.MethodCallExpr methodCall,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration m1,
com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration m2)
methodCall - m1 - m2 - Copyright © 2007–2019. All rights reserved.