public class TypeHelper
extends java.lang.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(java.util.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,java.lang.Boolean> |
groundTargetTypeOfLambda(com.github.javaparser.ast.expr.LambdaExpr lambdaExpr,
com.github.javaparser.resolution.types.ResolvedType T,
com.github.javaparser.symbolsolver.model.resolution.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(com.github.javaparser.symbolsolver.model.resolution.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(java.util.Set<com.github.javaparser.resolution.types.ResolvedType> types)
See JLS 4.10.4.
|
static java.util.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(com.github.javaparser.symbolsolver.model.resolution.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 java.util.Set<InferenceVariable> usedInferenceVariables(com.github.javaparser.resolution.types.ResolvedType type)
public static com.github.javaparser.resolution.types.ResolvedType leastUpperBound(java.util.Set<com.github.javaparser.resolution.types.ResolvedType> types)
public static com.github.javaparser.utils.Pair<com.github.javaparser.resolution.types.ResolvedType,java.lang.Boolean> groundTargetTypeOfLambda(com.github.javaparser.ast.expr.LambdaExpr lambdaExpr,
com.github.javaparser.resolution.types.ResolvedType T,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public static MethodType getFunctionType(com.github.javaparser.resolution.types.ResolvedType type)
public static com.github.javaparser.resolution.types.ResolvedType glb(java.util.Set<com.github.javaparser.resolution.types.ResolvedType> types)