CSC/ECE 517 Fall 2010/ch1 1c NR: Difference between revisions
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
Reflection is the ability of a computer program to introspect- to examine aspects of a program from within itself at runtime.Especially, properties that are typically observed only from some external, meta-level viewpoint. | Reflection is the ability of a computer program to introspect- to examine aspects of a program from within itself at runtime.Especially, properties that are typically observed only from some external, meta-level viewpoint. | ||
Using reflection, programs can observe and modify their own behavior and structure. | Using reflection, programs can observe and modify their own behavior and structure. | ||
Reflection is the ability of a program to manipulate as | Reflection is the ability of a program to manipulate data as something that represents the state of the program during its own execution. There are two aspects of such manipulation: introspection and intercession. Introspection is the abilityfor a program to observe and therefore reason about its own state. Intercession is the ability for a program to modify its own execution state or alter its own interpretation or meaning. | ||
=Reflection as a Language Feature= | =Reflection as a Language Feature= |
Revision as of 17:15, 7 September 2010
Introduction to Reflection
Reflection is the ability of a computer program to introspect- to examine aspects of a program from within itself at runtime.Especially, properties that are typically observed only from some external, meta-level viewpoint. Using reflection, programs can observe and modify their own behavior and structure. Reflection is the ability of a program to manipulate data as something that represents the state of the program during its own execution. There are two aspects of such manipulation: introspection and intercession. Introspection is the abilityfor a program to observe and therefore reason about its own state. Intercession is the ability for a program to modify its own execution state or alter its own interpretation or meaning.