Class CaseUtils
java.lang.Object
org.checkerframework.afu.annotator.find.CaseUtils
Utility class for dealing with CaseTree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<? extends ExpressionTree> caseTreeGetExpressions
(CaseTree caseTree) Returns the list of expressions from a case expression.
-
Constructor Details
-
CaseUtils
public CaseUtils()
-
-
Method Details
-
caseTreeGetExpressions
Returns the list of expressions from a case expression. In JDK 11 and earlier, this will be a singleton list. In JDK 12 onwards, there can be multiple expressions per case.- Parameters:
caseTree
- the case expression to get the expressions from- Returns:
- the list of expressions in the case
-