Method slots: Supporting methods, events, and advices by a single language construct

Yungyu Zhuang, Shigeru Chiba

Research output: Chapter in Book/Report/Conference proceedingChapterpeer-review

Abstract

To simplify the constructs that programmers have to learn for using paradigms, we extend methods to a new language construct, a method slot, to support both the event-handler paradigm and the aspect paradigm. A method slot is an object’s property that can keep more than one function closure and be called like a method. We also propose a Java-based language, DominoJ, which replaces methods in Java with method slots, and explains the behavior of method slots and the operators. Then we evaluate the coverage of expressive ability of method slots by comparing DominoJ with other languages in detail. The feasibility of method slots is shown as well by implementing a prototype compiler and running a preliminary microbenchmark for it.

Original languageEnglish
Title of host publicationLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
EditorsShigeru Chiba, Eric Tanter
PublisherSpringer Verlag
Pages70-108
Number of pages39
ISBN (Print)9783642550980
DOIs
StatePublished - 2014

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume8400
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Keywords

  • Aspect-oriented programming
  • Event-driven programming

Fingerprint

Dive into the research topics of 'Method slots: Supporting methods, events, and advices by a single language construct'. Together they form a unique fingerprint.

Cite this