A Case for Statically Executable Advice: Checking the Law of Demeter with AspectJ

Karl Lieberherr, David H. Lorenz, Pengcheng Wu

نتاج البحث: فصل من :كتاب / تقرير / مؤتمرمنشور من مؤتمرمراجعة النظراء

ملخص

We define a generic join point model for checking the Law of Demeter (LoD). Join points are trees, pointcuts are predicates over join points, and advice is checked statically similar to how declare warning is checked in AspectJ. We illustrate how the joint point form is mapped to the object and class forms of LoD, and provide an implementation in AspectJ that approximates LoD's class form by dynamically checking a particular execution using only the join points' static part. The paper proposes two ways to extend AspectJ to provide access to lexical join points directly. The first proposes statically executable advice and pointcut designators over lexical join points. The second proposes statically executable meta-advice over the exposed abstract syntax tree of the program and using Demeter style traversals to mirror AspectJ pointcuts.

اللغة الأصليةالإنجليزيّة
عنوان منشور المضيفProceedings of the 2nd International Conference on Aspect-Oriented Software Development, AOSD '03
الصفحات40-49
عدد الصفحات10
حالة النشرنُشِر - 2003
منشور خارجيًانعم
الحدث2nd International Conference on Aspect-Oriented Software Development - Boston, MA, الولايات المتّحدة
المدة: ١٧ مارس ٢٠٠٣٢١ مارس ٢٠٠٣

سلسلة المنشورات

الاسم2nd International Conference on Aspect-Oriented Software Development

!!Conference

!!Conference2nd International Conference on Aspect-Oriented Software Development
الدولة/الإقليمالولايات المتّحدة
المدينةBoston, MA
المدة١٧/٠٣/٠٣٢١/٠٣/٠٣

بصمة

أدرس بدقة موضوعات البحث “A Case for Statically Executable Advice: Checking the Law of Demeter with AspectJ'. فهما يشكلان معًا بصمة فريدة.

قم بذكر هذا