Skip to main content
reflection

reflection

2 7.9
The ability of a program to look at and change its own parts while running
  • noun
  • /rɪˈflɛkʃən/
  • Specialized
translation icon : reflexión
  • Since C++ is a compiled, non-managed language, it doesn't support reflection.

Examples

  • In order to do that, it had to use the Reflection classes that are available under the namespace System.Reflection.

    Blog text (26)
  • I've found myself several times wishing I could call a method based just on its name without resorting to cumbersome reflection APIs.

    Blog text (30)
  • I find the lack of reflection in C++ incredibly annoying, for one thing.

    Blog text (10)
  • After reflection, this is probably the most common metaprogramming technique used in Java development.

    Blog text (30)
  • The ability of a program to use reflection can simplify many dynamic programming tasks.

  • Many modern programming languages offer reflection to allow runtime introspection of objects.

  • Using reflection, developers can determine the properties of classes at runtime in languages like Ruby.

Synonyms

introspection
vsreflection
  • Specialized
1 7.3

A program or system that tells you how it is built and what parts it has

can modify classes methods or metadata at runtime rather than only inspect

Compounds

angle of reflection
  • Specialized
1 5.1

The angle between a reflected light ray and a line at right angles to the surface where it hits

8.2

Part of incoming light or heat that bounces off a surface

reflection factor
  • Specialized
7.4

Part of light that bounces off a surface, like a mirror

sound reflection
  • Specialized
3.8

A bounce of sound you hear again after it hits a surface

9.9

Physical laws do not change when left and right are swapped

How Detailed

reflection
  • Specialized
2 7.9
introspection
  • Specialized
1 7.3
inspection
  • Formal
356 2.5

Surface Forms

reflection singular
reflections plural

Morphology

reflection = reflect (semi-transparent) = reflect + ion

The transformation from 'reflect' to 'reflection' is clear, but the programming-specific meaning is not directly derivable from the base word.

Etymology

Reflection comes from Latin parts re- 'back' and flect 'bend', which gives the idea of 'looking back' at yourself. A helpful way to remember programming reflection is to think of a program looking in a mirror so it can see and sometimes change its own parts at runtime.