Class SwitchExpressionScanner<R,P>

java.lang.Object
com.sun.source.util.TreeScanner<R,P>
org.checkerframework.javacutil.SwitchExpressionScanner<R,P>
Type Parameters:
R - the type of the result of visitSwitchResultExpression(ExpressionTree, Object)
P - the type of the parameter to pass to visitSwitchResultExpression(ExpressionTree, Object)
All Implemented Interfaces:
TreeVisitor<R,P>
Direct Known Subclasses:
SwitchExpressionScanner.FunctionalSwitchExpressionScanner

public abstract class SwitchExpressionScanner<R,P> extends TreeScanner<R,P>
A class that visits each result expression of a switch expression and calls visitSwitchResultExpression(ExpressionTree, Object) on each result expression. The results of these method calls are combined using combineResults(Object, Object). Call scanSwitchExpression(Tree, Object) to start scanning the switch expression.

SwitchExpressionScanner.FunctionalSwitchExpressionScanner can be used to pass functions for to use for visitSwitchResultExpression(ExpressionTree, Object) and combineResults(Object, Object).