|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectanalysis.coverage.Analyzer
public class Analyzer
Coverage analysis, including rule coverage or context-dependent rule coverage.
| Constructor Summary | |
|---|---|
Analyzer(MyGrammar grammar)
Creates an instance of analyzer |
|
| Method Summary | |
|---|---|
boolean |
analyzeSentence(java.lang.String sentence)
Parses a sentence and marks all the used productions and branches. |
int |
analyzeSentences(java.lang.String[] sentences)
Analyzes the coverage of a sentence set. |
void |
init()
Initializes all the productions and branches unused. |
boolean |
isAllBranchMark()
Returns true if all the branches have been used |
boolean |
isAllProductionMark()
Returns true if all the productions have been used |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Analyzer(MyGrammar grammar)
grammar - the grammar for analysis| Method Detail |
|---|
public void init()
public boolean analyzeSentence(java.lang.String sentence)
sentence - the sentence to parse
public boolean isAllBranchMark()
public boolean isAllProductionMark()
public int analyzeSentences(java.lang.String[] sentences)
sentences - the sentence set to analyze
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||