Class SingularFieldRule

All Implemented Interfaces:
AstVisitor, JavaVisitor, Rule, PropertySource

public class SingularFieldRule extends AbstractJavaRulechainRule
A singular field is a field that may be converted to a local variable. This means, that in every method the field is used, there is no path that uses the value that the field has before the method is called. In other words, the field is overwritten before any read.
Author:
Eric Olander, Wouter Zelle, Clément Fournier
Since:
Created on April 17, 2005, 9:49 PM