public class TypeHelper extends Object
| Constructor and Description |
|---|
TypeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static MethodType |
getFunctionType(com.github.javaparser.resolution.types.ResolvedType type) |
static com.github.javaparser.resolution.types.ResolvedType |
glb(Set<com.github.javaparser.resolution.types.ResolvedType> types)
See JLS 5.1.10.
|
static com.github.javaparser.utils.Pair<com.github.javaparser.resolution.types.ResolvedType,Boolean> |
groundTargetTypeOfLambda(com.github.javaparser.ast.expr.LambdaExpr lambdaExpr,
com.github.javaparser.resolution.types.ResolvedType T,
TypeSolver typeSolver)
See JLS 15.27.3.
|
static boolean |
isCompatibleInALooseInvocationContext(com.github.javaparser.resolution.types.ResolvedType s,
com.github.javaparser.resolution.types.ResolvedType t)
see https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.3
|
static boolean |
isCompatibleInALooseInvocationContext(TypeSolver typeSolver,
com.github.javaparser.ast.expr.Expression expression,
com.github.javaparser.resolution.types.ResolvedType t)
see https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.3
|
static boolean |
isCompatibleInAStrictInvocationContext(com.github.javaparser.ast.expr.Expression expression,
com.github.javaparser.resolution.types.ResolvedType t)
see https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.3
|
static boolean |
isInferenceVariable(com.github.javaparser.resolution.types.ResolvedType type) |
static boolean |
isProperType(com.github.javaparser.resolution.types.ResolvedType type)
The term proper type excludes such "types" that mention inference variables.
|
static com.github.javaparser.resolution.types.ResolvedType |
leastUpperBound(Set<com.github.javaparser.resolution.types.ResolvedType> types)
See JLS 4.10.4.
|
static Set<InferenceVariable> |
usedInferenceVariables(com.github.javaparser.resolution.types.ResolvedType type) |
public static boolean isProperType(com.github.javaparser.resolution.types.ResolvedType type)
public static boolean isCompatibleInAStrictInvocationContext(com.github.javaparser.ast.expr.Expression expression,
com.github.javaparser.resolution.types.ResolvedType t)
expression - t - public static boolean isCompatibleInALooseInvocationContext(TypeSolver typeSolver, com.github.javaparser.ast.expr.Expression expression, com.github.javaparser.resolution.types.ResolvedType t)
expression - t - public static boolean isCompatibleInALooseInvocationContext(com.github.javaparser.resolution.types.ResolvedType s,
com.github.javaparser.resolution.types.ResolvedType t)
s - t - public static boolean isInferenceVariable(com.github.javaparser.resolution.types.ResolvedType type)
public static Set<InferenceVariable> usedInferenceVariables(com.github.javaparser.resolution.types.ResolvedType type)
public static com.github.javaparser.resolution.types.ResolvedType leastUpperBound(Set<com.github.javaparser.resolution.types.ResolvedType> types)
public static com.github.javaparser.utils.Pair<com.github.javaparser.resolution.types.ResolvedType,Boolean> groundTargetTypeOfLambda(com.github.javaparser.ast.expr.LambdaExpr lambdaExpr, com.github.javaparser.resolution.types.ResolvedType T, TypeSolver typeSolver)
public static MethodType getFunctionType(com.github.javaparser.resolution.types.ResolvedType type)
public static com.github.javaparser.resolution.types.ResolvedType glb(Set<com.github.javaparser.resolution.types.ResolvedType> types)
Copyright © 2007–2019. All rights reserved.