𝔖 Bobbio Scriptorium
✦   LIBER   ✦

Linguistic reflection in Java

✍ Scribed by Graham Kirby; Ron Morrison; David Stemple


Book ID
101236787
Publisher
John Wiley and Sons
Year
1998
Tongue
English
Weight
425 KB
Volume
28
Category
Article
ISSN
0038-0644

No coin nor oath required. For personal study only.

✦ Synopsis


Reflective systems allow their own structures to be altered from within. Here we are concerned with a style of reflection, called linguistic reflection, which is the ability of a running program to generate new program fragments and to integrate these into its own execution. In particular, we describe how this kind of reflection may be provided in the compiler-based, strongly typed objectoriented programming language Java. The advantages of the programming technique include attaining high levels of genericity and accommodating system evolution. These advantages are illustrated by an example taken from persistent programming, which shows how linguistic reflection allows functionality (program code) to be generated on demand (Just-In-Time) from a generic specification and integrated into the evolving running program. The technique is evaluated against alternative implementation approaches with respect to efficiency, safety and ease of use.


πŸ“œ SIMILAR VOLUMES


Java Reflection in Action
✍ Ira R. Forman, Nate Forman πŸ“‚ Library πŸ“… 2005 πŸ› Manning; Pearson Education 🌐 English βš– 2 MB

Intended for intermediate Java programmers, this book presents several ways to produce flexible code using reflection. The authors, who have taught a software patterns course at the University of Texas, discuss dynamic loading, dynamic proxies, class stack introspection, the class loader, class-to-c