کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
436354 689993 2008 18 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Extending FeatherTrait Java with Interfaces
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Extending FeatherTrait Java with Interfaces
چکیده انگلیسی

In the context of Featherweight Java by Igarashi, Pierce, and Wadler, and its recent extension FeatherTrait Java (FTJ) by the authors, we investigate classes that can be extended with trait composition. A trait is a collection of methods, i.e., behaviors without state; it can be viewed as an “incomplete stateless class” i.e., an interface with some already written behavior. Traits can be composed in any order, but only make sense when “imported” by a class that provides state variables and additional methods to disambiguate conflicting names arising between the imported traits. We introduce FeatherTrait Java with Interfaces (iFTJ), where traits need to be typechecked only once, which is necessary for compiling them in isolation, and considering them as regular types, like Java-interfaces with a behavioral content.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Theoretical Computer Science - Volume 398, Issues 1–3, 28 May 2008, Pages 243-260