Decoupling classes with inferred interfaces
Open Access
- 23 April 2006
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1404-1408
Abstract
Using small, context-specific interfaces in variable declarations serves the decoupling of classes and increases a program’s flexibility. To minimize its interface, a thorough analysis of the protocol needed from a variable is required. Currently available refactorings for the extraction of interfaces leave the programmer alone with the decision which methods to include or, more problematically, which to omit: they let him choose manually from the protocol of an existing type, and only then offer to use the new interface where (if) possible. To aid the programmer in defining a new interface, we have developed a new refactoring that infers it from a variable’s declaration and automatically inserts it into the code.Keywords
This publication has 15 references indexed in Scilit:
- Interface utilization in the Java Development Kit2004
- Bidirectional data flow analysis for type inferencingComputer Languages, Systems & Structures, 2003
- Practical extraction techniques for JavaACM Transactions on Programming Languages and Systems, 2002
- Precise Constraint-Based Type Inference for Java2001
- Optimization of Object-Oriented Programs Using Static Class Hierarchy Analysis2000
- Class hierarchy specializationActa Informatica, 2000
- Understanding class hierarchies using concept analysisACM Transactions on Programming Languages and Systems, 2000
- Safe Structural Conformance for JavaThe Computer Journal, 2000
- A metrics suite for object oriented designIEEE Transactions on Software Engineering, 1994
- Creating abstract superclasses by refactoring1993