Research Article

Intelligent Mining of Association Rules Based on Nanopatterns for Code Smells Detection

Table 4

Outline of fundamental nanopatterns.

CategoryNameOutline

CallingNoParamsTakes no arguments
NoReturnReturns void
RecursiveCalls itself recursively
SameNameCalls another method with the same name
LeafDoes not issue any method calls

Object-orientationObjectCreatorCreates new objects
FieldReaderReads field values from an object
FieldWriterWrites values to the field of an object
TypeManipulatorUses typecast or instance of operations

Control flowStraightLineNo branches in a method body
LoopingOne or more control flow loops in a method body
ExceptionsMay throw an unhandled exception

Data flowLocalReaderRead values of local variables on a stack frame
LocalWriterWrites values of local variables on a stack frame
ArrayCreatorCreates a new array
ArrayReaderReads values from an array
ArrayWriterWrites values to an array