Top "Introspection" questions

A capability of some object-oriented programming languages to determine the type of an object at runtime.

How do I list available methods on a given object or package in Perl?

How do I list available methods on a given object or package in Perl?

perl introspection
How can I determine if a Perl function exists at runtime?

I'm working on a test framework in Perl. As part of the tests, I may need to add precondition or …

perl introspection
Iterate the classes defined in a module imported dynamically

I have a module from a child package that is imported dynamically; how can I iterate over the classes that …

python introspection
Introspection to get decorator names on a method?

I am trying to figure out how to get the names of all decorators on a method. I can already …

python decorator introspection
What is the difference between introspection and reflection?

Can anyone explain from a language/environment agnostic perspective the difference between these two notions? Also is there a set …

reflection language-agnostic introspection
Java: How to find if a method is overridden from base class?

How to find out if a method is overridden by child classes? For example, public class Test { static public class …

java inheritance methods overriding introspection
Get the name (string) of a generic type in Swift

I have a generic class of type T and I would like to get the name of the type that …

generics types swift introspection
Checking for member existence in Python

I regularly want to check if an object has a member or not. An example is the creation of a …

python exception introspection hasattr
Generate SQL to update primary key

I want to change a primary key and all table rows which reference to this value. # table master master_id|…

sql postgresql introspection