Skip to content

fatemehkarimi/automatic-detection-of-push-down-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic detection of push-down field refactoring in Java programs with ANTLR4

Push down field in one of the refactorings related to inheritance that is mentioned by Martin Fowler, in his book, Refactoring: Improving the Design of Existing Code. it is applied when a field was planned to be used in a class and his children, but in reality, only some of its subclasses used it. to refactor, it is better to move the unused field in parent class to its subclasses that use it. This tool is developed to automatically determine possible opportunities of this refactoring in java projects.

Dependancies

  • python 3.8
  • ANTLR4

Run

Use the following command to run the tool on your java project: python3 main.py --path='PATH-TO-YOUR-JAVA-PROJECT'

About

automatic detection of push-down field refactoring with ANTLR4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published