Class CaseUtils

java.lang.Object
org.checkerframework.afu.annotator.find.CaseUtils

public class CaseUtils extends Object
Utility class for dealing with CaseTree.
  • Constructor Details

    • CaseUtils

      public CaseUtils()
  • Method Details

    • caseTreeGetExpressions

      public static List<? extends ExpressionTree> caseTreeGetExpressions(CaseTree caseTree)
      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