CSC/ECE 517 Fall 2011/ch4 4f rs: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 5: Line 5:


==Reflection==
==Reflection==
Reflection is the ability of a program or a computation to examine and modify itself at run time even though it does not have enough information at compile time. For example in a high level object oriented language the ability to inspect its class , interfaces and methods at run time without knowing their names at compile time. It also provides the ability to modify , instantiate and access to methods such as getter's and setter's of a class.
==Implementation==
==Implementation==
==Reflection by example==
==Reflection by example==

Revision as of 14:07, 20 October 2011

Introduction

Reflection is a relatively common computer programming concept where in the program has the inherant ability to examine itself at runtime. Based on its observations the program can modify it's behaviour for the given situation.The modifications can be any aspect of the programming language .i.e syntax, semantics, or implementation.

Reflection as a concept was first introduced in the doctoral dissertation of Dr. Brian Cantwell Smith in 1992.

Reflection

Reflection is the ability of a program or a computation to examine and modify itself at run time even though it does not have enough information at compile time. For example in a high level object oriented language the ability to inspect its class , interfaces and methods at run time without knowing their names at compile time. It also provides the ability to modify , instantiate and access to methods such as getter's and setter's of a class.

Implementation

Reflection by example

Applications of Reflection

Advantages and disadvantages of refletion

Additional Reading