Class KeywordCounter
- java.lang.Object
-
- pl.put.poznan.sqc.domain.visitors.CounterVisitor
-
- pl.put.poznan.sqc.domain.visitors.KeywordCounter
-
- All Implemented Interfaces:
Visitor
public class KeywordCounter extends CounterVisitor
Concrete class of CounterVisitorIncrement the counter for each keyword encountered in Scenario's Steps
The keywords are: IF, ELSE, FOR EACH.
- See Also:
CounterVisitor
,Visitor
,Scenario
,Step
,SQCService.getKeywordCount()
-
-
Constructor Summary
Constructors Constructor Description KeywordCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(Step step)
Increment the counter if one of keywords is encountered.-
Methods inherited from class pl.put.poznan.sqc.domain.visitors.CounterVisitor
getCount, incrementCount, visit, visit
-
-
-
-
Method Detail
-
visit
public void visit(Step step)
Increment the counter if one of keywords is encountered.Checks whether the text of step starts with any of keywords and a space.
- Parameters:
step
- Step which will be analysed- See Also:
CounterVisitor
-
-