Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is reflection called reflection instead of introspection?

What is the origin of the term reflection? It seems more like introspection. Why isn't it called that?

Introspection: A looking inward; specifically, the act or process of self-examination.

Reflection:

  1. the act of reflecting or the state of being reflected.
  2. an image; representation; counterpart
  3. a fixing of the thoughts on something; careful consideration
  4. a thought occurring in consideration or meditation.
like image 647
tvanfosson Avatar asked Dec 09 '08 02:12

tvanfosson


People also ask

Is reflection same as introspection?

Summary: 1. The term reflection denotes the act or state of being reflected while introspection has to do with the observation or examination of one's own mental and emotional state of mind.

Is there a difference between reflection and self reflection?

Reflection is a personal process that can deepen one's understanding of self and can lead to significant discoveries or insights, while self-assessment is a process that involves establishing strengths, improvements, and insights based on predetermined performance criteria.

What is reflection and introspection in Java?

Introspection is concept of querying any reference (Object) RUNTIME for its type/class /method details .. Reflection is Java API which provides this ability . This is normally used when you want to deal Objects having No Type information available till Runtime (say for example Objects passed by External systems)

What is reflection introspection and intercession?

Reflection is a mechanism composed of two techniques : Introspection. The ability for a program to examine itself. Intercession. The ability for a program to modify itself (his behaviour or his state)


1 Answers

There is an interesting answer on the french wikipedia article for Reflection (here)

Reflection can be decomposed in two parts:

  • introspection: a program can examine itself.
  • intercession: a program can modify its state/meaning.

So reflection is a 'stronger' property than introspection. That's why you say type introspection for the ability to know types at runtime (and changing them is another action: conversion/casting).

EDIT: actually I just realized the first answer was saying exactly that ^^. Time to unplug myself...

like image 152
Piotr Lesnicki Avatar answered Oct 16 '22 20:10

Piotr Lesnicki