|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectRule
CommaWhitespaceRule
public class CommaWhitespaceRule
A rule that matches commas and closing parenthesis preceded by whitespace and opening parenthesis followed by whitespace.
| Constructor Summary | |
|---|---|
CommaWhitespaceRule(ResourceBundle messages)
|
|
| Method Summary | |
|---|---|
String |
getDescription()
|
String |
getId()
|
RuleMatch[] |
match(AnalyzedSentence text)
Check whether the given text matche this error rule, i.e. whether the text contains this error. |
void |
reset()
If a rule keeps it state over more than the check of one sentence, this must be implemented so the internal state it reset. |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommaWhitespaceRule(ResourceBundle messages)
| Method Detail |
|---|
public String getId()
getId in class Rulepublic String getDescription()
getDescription in class Rulepublic RuleMatch[] match(AnalyzedSentence text)
Rule
match in class Ruletext - a pre-analyzed sentence
public void reset()
Rule
reset in class Rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||