]> git.uio.no Git - ifi-stolz-refaktor.git/blame - software/no.uio.ifi.refaktor/src/no/uio/ifi/refaktor/analyze/collectors/BranchingStatementsChecker.java
LegalStatementsChecker: refactoring
[ifi-stolz-refaktor.git] / software / no.uio.ifi.refaktor / src / no / uio / ifi / refaktor / analyze / collectors / BranchingStatementsChecker.java
CommitLineData
5748b416
EK
1package no.uio.ifi.refaktor.analyze.collectors;
2
398d7e0c
EK
3import no.uio.ifi.refaktor.analyze.analyzers.Checker;
4import no.uio.ifi.refaktor.analyze.analyzers.IllegalExpressionFoundException;
5import no.uio.ifi.refaktor.analyze.analyzers.IllegalStatementFoundException;
5748b416
EK
6import no.uio.ifi.refaktor.utils.CompilationUnitTextSelection;
7
398d7e0c 8public 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}