|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.sequencer.ddl.DdlParserScorer
@NotThreadSafe public class DdlParserScorer

Interface used by a parser to determine a score describing how well it handles the DDL content.
| Constructor Summary | |
|---|---|
DdlParserScorer()
|
|
| Method Summary | |
|---|---|
int |
getScore()
Get the score. |
void |
scoreStatements(int count)
Increment the score because another statement was matched. |
void |
scoreText(String text,
int factor,
String... keywords)
Increment the score if the given text contains any of the supply keywords. |
void |
scoreText(String text,
String... keywords)
Increment the score if the given text contains any of the supply keywords. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DdlParserScorer()
| Method Detail |
|---|
public void scoreStatements(int count)
count - the number of statements
public void scoreText(String text,
int factor,
String... keywords)
text - the text to evaluate; may be nullfactor - the factor to use for each incrementkeywords - the keywords to be found in the text
public void scoreText(String text,
String... keywords)
text - the text to evaluate; may be nullkeywords - the keywords to be found in the textpublic int getScore()
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||