]>
Commit | Line | Data |
---|---|---|
5748b416 EK |
1 | package no.uio.ifi.refaktor.analyze.collectors; |
2 | ||
398d7e0c EK |
3 | import no.uio.ifi.refaktor.analyze.analyzers.Checker; |
4 | import no.uio.ifi.refaktor.analyze.analyzers.IllegalExpressionFoundException; | |
5 | import no.uio.ifi.refaktor.analyze.analyzers.IllegalStatementFoundException; | |
5748b416 EK |
6 | import no.uio.ifi.refaktor.utils.CompilationUnitTextSelection; |
7 | ||
398d7e0c | 8 | public class BranchingStatementsChecker implements Checker { |
5748b416 | 9 | |
398d7e0c | 10 | private final Checker checker; |
5748b416 EK |
11 | |
12 | public BranchingStatementsChecker(CompilationUnitTextSelection selection) { | |
398d7e0c | 13 | checker = new ReturnStatementsChecker(selection); |
5748b416 EK |
14 | } |
15 | ||
398d7e0c EK |
16 | @Override |
17 | public void check() throws IllegalStatementFoundException, IllegalExpressionFoundException { | |
18 | checker.check(); | |
5748b416 EK |
19 | } |
20 | ||
21 | } |