CSC/ECE 517 Fall 2007/ch1 1c JF: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Features of Reflection ==
== Features of Reflection ==


[http://en.wikipedia.org/wiki/Reflection_(computer_science) Reflection] allows programs to act in a more "intelligent" way by providing the ability to introspect and intercede [3].  Introspection allows programs to answer questions about what they are and what they can do.  Intercession allows programs to use the knowledge gained from introspection to modify behavior.  
[http://en.wikipedia.org/wiki/Reflection_(computer_science) Reflection] allows programs to act in a more "intelligent" way by providing the ability to answer questions about what an object or class knows or does and modify behavior based on those answers [3].  Some of the features of reflection are that an object knows what type it is and what methods it contains, call methods dynamically, have objects change their state based on a change of state of another object, and trace the execution of your program.


== Feature 1 ==
== Feature 1 ==

Revision as of 17:06, 6 September 2010

Features of Reflection

Reflection allows programs to act in a more "intelligent" way by providing the ability to answer questions about what an object or class knows or does and modify behavior based on those answers [3]. Some of the features of reflection are that an object knows what type it is and what methods it contains, call methods dynamically, have objects change their state based on a change of state of another object, and trace the execution of your program.

Feature 1

Reflective Language Examples

Ruby

Reflective Package Examples

Java

Feature 2

Reflective Language Examples

Reflective Package Examples

References

[1] Reflection-Oriented Programming

[2] Procedural Reflection in Programming Languages

[3] Evolving a Reflective Language Lessons Learned from Implementing Traits