Package net.sourceforge.pmd.lang.dfa
Class SequenceChecker
- java.lang.Object
-
- net.sourceforge.pmd.lang.dfa.SequenceChecker
-
public class SequenceChecker extends Object
Computes the first sequence in a list.e.g. IF_START 0 WHILE_EXPR 1 WHILE_END 2 IF_END 3
The first sequence is WHILE_EXPR and WHILE_END. It returns always the first inner nested scope.
- Author:
- raik
-
-
Constructor Summary
Constructors Constructor Description SequenceChecker(List<StackObject> bracesList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFirstIndex()
int
getLastIndex()
boolean
run()
Finds the first innermost sequence e.g IFStart & IFEnd.
-
-
-
Constructor Detail
-
SequenceChecker
public SequenceChecker(List<StackObject> bracesList)
-
-