Annotation Interface AlsoNegation
Indicates that Refaster should, additionally, refactor the negation of this rule and its
corresponding before templates. For example, given a
BeforeTemplate with the code
str.length() == 0 and an @AfterTemplate @AlsoNegation with the code
str.isEmpty(), Refaster would also rewrite str.length() != 0 as !str.isEmpty().
If this annotation is applied, all BeforeTemplate and AfterTemplate templates
must be expression templates with boolean return type.