Research Article
Intelligent Mining of Association Rules Based on Nanopatterns for Code Smells Detection
Table 4
Outline of fundamental nanopatterns.
| | Category | Name | Outline |
| | Calling | NoParams | Takes no arguments | | NoReturn | Returns void | | Recursive | Calls itself recursively | | SameName | Calls another method with the same name | | Leaf | Does not issue any method calls |
| | Object-orientation | ObjectCreator | Creates new objects | | FieldReader | Reads field values from an object | | FieldWriter | Writes values to the field of an object | | TypeManipulator | Uses typecast or instance of operations |
| | Control flow | StraightLine | No branches in a method body | | Looping | One or more control flow loops in a method body | | Exceptions | May throw an unhandled exception |
| | Data flow | LocalReader | Read values of local variables on a stack frame | | LocalWriter | Writes values of local variables on a stack frame | | ArrayCreator | Creates a new array | | ArrayReader | Reads values from an array | | ArrayWriter | Writes values to an array |
|
|