Abstract
In this chapter we describe a modern environment that supports a typed object-oriented technology. The components of this environment include reflection, the actual object-oriented virtual machine, and support for persistent objects. Reflection is the topic of Sect. 3.1. We first describe in Sect. 3.1.2 the core of type—safe object-oriented reflection: the Java class Class (C# has the corresponding type Type). Classes Field, Method, and Constructor are described in respective Sects. 3.1.3, 3.1.4, and 3.1.5. In Sect. 3.1.6 we show how access and updating of field values is carried out using reflection. In Sect. 3.1.7 we show how methods are invoked using reflection. Creating class objects using an extensible class loader is the topic of Sect. 3.1.8. Finally, in Sect. 3.1.9 we give a general specification of the structure of the Java class files.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
J. Alabahari, B. Albahari, C# 5.0 in a Nutshell (O’Reilly, Beijing, 2012)
S. Alagić, T. Ngyen, Parametric polymorphism and orthogonal persistence, in Proceedings of the ECOOP 2000 Symposium on Objects and Databases. Lecture Notes in Computer Science, vol. 1813 (Springer, Heidelberg, 2001), pp. 32–46
S. Alagić, M. Royer, Genericity in Java: persistent and database systems implications. VLDB J. 17(4), 847–878 (2007)
S. Alagić, J. Solorzano, Java and OQL: a reflective solution for the impedance mismatch. L’objet 6, 3 (2000)
K. Arnold, J. Gosling, D. Holmes, The Java Programming Language, 4th edn. (Addison-Wesley, Boston, 2005)
M. Atkinson, R. Morrison, Orthogonally persistent object systems. VLDB J. 4, 319–401 (1995)
M. Atkinson, L. Daynes, M.J. Jordan, T. Printezis, S. Spence, An orthogonally persistent JavaTM. ACM SIGMOD Rec. 25, 68–75 (1996)
J. Gosling, B. Joy, G. Steel, G. Bracha, The Java Language Specification, 3rd edn. (Addison Wesley, Boston, 2005)
Java Core Reflection, JDK 1.1. Sun Microsystems (1997)
G. Kirby, R. Morrison, D. Stemple, Linguistic reflection in Java. Softw. Pract. Exp. 28(10), 1045–1077 (1998)
T. Lindholm, F. Yellin, The Java TM Virtual Machine Specification (Addison-Wesley, Boston, 1996)
M. Royer, S. Alagić, D. Dillon, Reflective constraint management for languages on virtual platforms. J. Object Tech. 6(10), 59–79 (2007). http://www.jot.fm/issues/issue_2007_11/article1/index.html
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Alagić, S. (2015). Virtual Platform. In: Object-Oriented Technology. Springer, Cham. https://doi.org/10.1007/978-3-319-20442-0_3
Download citation
DOI: https://doi.org/10.1007/978-3-319-20442-0_3
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-20441-3
Online ISBN: 978-3-319-20442-0
eBook Packages: Computer ScienceComputer Science (R0)