Class CheckedExceptionsUtil
java.lang.Object
org.checkerframework.framework.util.typeinference8.util.CheckedExceptionsUtil
Util for checked exception constraints.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<TypeMirror>
thrownCheckedExceptions
(LambdaExpressionTree lambda, Java8InferenceContext context) Returns a list of checked exception types that can be thrown by the lambda.static List<AnnotatedTypeMirror>
thrownCheckedExceptionsATM
(LambdaExpressionTree lambda, Java8InferenceContext context) Returns a list of checked exception types that can be thrown by the lambda.
-
Method Details
-
thrownCheckedExceptions
public static List<TypeMirror> thrownCheckedExceptions(LambdaExpressionTree lambda, Java8InferenceContext context) Returns a list of checked exception types that can be thrown by the lambda.- Parameters:
lambda
- an expressioncontext
- inference context- Returns:
- a list of types of checked exceptions that can be thrown by the lambda
-
thrownCheckedExceptionsATM
public static List<AnnotatedTypeMirror> thrownCheckedExceptionsATM(LambdaExpressionTree lambda, Java8InferenceContext context) Returns a list of checked exception types that can be thrown by the lambda.- Parameters:
lambda
- an expressioncontext
- inference context- Returns:
- a list of types of checked exceptions that can be thrown by the lambda
-