Class TreeUtilsAfterJava11.ConstantCaseLabelUtils

java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.ConstantCaseLabelUtils
Enclosing class:
TreeUtilsAfterJava11

public static class TreeUtilsAfterJava11.ConstantCaseLabelUtils extends Object
Utility methods for accessing ConstantCaseLabelTree methods.
  • Method Details

    • isConstantCaseLabelTree

      public static boolean isConstantCaseLabelTree(Tree tree)
      Returns true if tree is a ConstantCaseLabelTree.
      Parameters:
      tree - a tree to check
      Returns:
      true if tree is a ConstantCaseLabelTree
    • getConstantExpression

      public static ExpressionTree getConstantExpression(Tree constantCaseLabelTree)
      Wrapper around ConstantCaseLabelTree#getConstantExpression.
      Parameters:
      constantCaseLabelTree - a ConstantCaseLabelTree tree
      Returns:
      the expression in the constantCaseLabelTree