write_gof_patterns: Write GoF Patterns

write_gof_patternsR Documentation

Write GoF Patterns

Description

Write GoF patterns generated by 'pattern4.jar' into a a table. https://www.srcml.org/documentation.html. Pattern4.jar is available on [Tsantalis' homepage](https://users.encs.concordia.ca/~nikolaos/pattern_detection.html)).

Usage

write_gof_patterns(
  pattern4_path,
  class_folder_path,
  output_filepath = "/tmp/gof.xml"
)

Arguments

pattern4_path

The path to Tsantalis' pattern4 jar

class_folder_path

The path to a folder one level above subdirectories that contain the class files.

output_filepath

Optional path to store the XML generated by pattern4. If not specified, it will be saved to '/tmp/gof.xml'.

Value

A data.table containing the parsed gof patterns per class.

References

N. Tsantalis, A. Chatzigeorgiou, G. Stephanides, S. T. Halkidis, "Design Pattern Detection Using Similarity Scoring", IEEE Transactions on Software Engineering, vol. 32, no. 11, pp. 896-909, November, 2006.


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.