@NotThreadSafe public class DdlParserScorer extends Object
Constructor and Description |
---|
DdlParserScorer() |
Modifier and Type | Method and Description |
---|---|
int |
getScore()
Get the score.
|
void |
reset()
Reset the score back to zero.
|
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() |
public void reset()
public void scoreStatements(int count)
count
- the number of statementspublic 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 textpublic 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 Object
Object.toString()
Copyright © 2008-2015 JBoss, a division of Red Hat. All Rights Reserved.