Sadece kaynak kod kullanarak otomatik yorum oluşturma
Yükleniyor...
Dosyalar
Tarih
2017-06-27
Yazarlar
Dergi Başlığı
Dergi ISSN
Cilt Başlığı
Yayıncı
IEEE
Erişim Hakkı
info:eu-repo/semantics/closedAccess
Özet
Bu çalışmada, kaynak kodlara metot seviyesinde yorum ekleme işinin otomatikleştirilmesi anlatılmaktadır. Kodların, Java programlama dilinin sözdizim kurallarına uygun olması yeterli olup, çalışabilir durumda olması beklenmemektedir. Yorum üretmek için kaynak kod biçimsel açıdan incelenir. Bu aşamada ilgili metodun sadece imzasına ve geri döndürdüğü veri tipine ihtiyaç duyulur. Açık kaynak kodlu Java projeleri üzerinde yapılan çalışmayla farklı metot türleri için farklı şablonlar geliştirilmiştir. Yazılımcının geliştirdiği kodun incelenmesi sonucu derlenen bilgi ile bu şablonlardan en uygun olanı seçilir ve metinler oluşturulur. Bu metinler metodun amacını açıklar. Oluşturulan metinler yorum olarak kaynak koda eklenmektedir.
In this study, automatic comment generation for Java methods is described. It is sufficient that the codes conform to the syntax rules of the Java programming language, and it is not expected to be runnable. In order to generate comments, source code is examined syntactically. At this stage, only the method signature and its return type is needed. By working on open source Java projects, different templates have been developed for different method types. Using the compiled information which is the result of the examining source code that is currently being developed, the most suitable template is chosen and texts arc created. These texts explain the aim of the method. Created texts are added to source code as a comment.
In this study, automatic comment generation for Java methods is described. It is sufficient that the codes conform to the syntax rules of the Java programming language, and it is not expected to be runnable. In order to generate comments, source code is examined syntactically. At this stage, only the method signature and its return type is needed. By working on open source Java projects, different templates have been developed for different method types. Using the compiled information which is the result of the examining source code that is currently being developed, the most suitable template is chosen and texts arc created. These texts explain the aim of the method. Created texts are added to source code as a comment.
Açıklama
Anahtar Kelimeler
Dökümantasyon üretme, Kaynak kodun özetlenmesi, Program anlama, Automatic comment generation, Automatic programming, Cloning, Code search, Codes (symbols), Compiled information, Computer programming, Computer programming languages, Documentation, Documentation generation, Java, Java methods, Java programming language, Object-oriented programming, Open source Java project, Open sources, Open source software, Program comprehension, Program documentation, Reactive power, Signal processing, Software engineering, Source code, Source code summarization, Source codes, Syntactics, Syntax rule, Two dimensional displays
Kaynak
2017 25th Signal Processing and Communications Applications Conference (SIU)
WoS Q Değeri
N/A
Scopus Q Değeri
N/A
Cilt
Sayı
Künye
Yıldız, E. & Ekin, E. (2017). Automatic comment generation using only source code. Paper presented at the 2017 25th Signal Processing and Communications Applications Conference (SIU), 1-4. doi:10.1109/SIU.2017.7960702