Linguistic reflection in Java
MetadataShow full item record
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 object-oriented 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.
Kirby , G N C , Morrison , R & Stemple , D W 1998 , ' Linguistic reflection in Java ' Software: Practice and Experience , vol 28 , no. 10 , pp. 1045-1077 . , 10.1002/(sici)1097-024x(199808)28:10<1045::aid-spe191>3.3.co;2-6
Software: Practice and Experience
This is the author's submitted version. The definitive version (c) John Wiley & Sons is available at www3.interscience.wiley.com
This work is partially supported by the EPSRC through Grant GR/J 67611 ‘Delivering the Benefits of Persistence to System Construction’
Items in the St Andrews Research Repository are protected by copyright, with all rights reserved, unless otherwise indicated.