public interface IInflectionRule
Modifier and Type | Method and Description |
---|---|
<T extends IToken> |
isValid(IMWE<T> mwe)
Returns
true if this MWE follows the rule;
false otherwise. |
<T extends IToken> |
matches(IMWE<T> mwe)
Returns
true if the given MWE has the same syntax as this
rule. |
<T extends IToken> boolean isValid(IMWE<T> mwe)
true
if this MWE follows the rule;
false
otherwise.T
- the type of tokens in the MWEmwe
- the MWE to which the rule may/may not be appliedtrue
if this MWE follows the rule;
false
otherwise.java.lang.IllegalArgumentException
- if this rule may not be applied to the given MWE. May only
throw this exception if the matches(IMWE<T> mwe)
method returns false.<T extends IToken> boolean matches(IMWE<T> mwe)
true
if the given MWE has the same syntax as this
rule. In other words, returns true
if this rule may be
applied to the given MWE; false
otherwise.T
- the type of tokens in the MWEmwe
- the MWE to which the rule may/may not be appliedtrue
if this rule may be applied to the
given MWE, false
otherwise.Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.