Top "Introspection" questions

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

How to get the list of all attributes of a Java object using BeanUtils introspection?

I have method which gets a POJO as it's parameter. Now I want to programmatically get all the attributes of …

java reflection introspection apache-commons-beanutils
Objective-C Introspection/Reflection

Is there a built in method, function, API, commonly accepted way, etc. to dump the contents of an instantiated object …

objective-c cocoa xcode reflection introspection
How do I get the filepath for a class in Python?

Given a class C in Python, how can I determine which file the class was defined in? I need something …

python class introspection
How can I list the methods in a Python 2.5 module?

I'm trying to use a Python library written in C that has no documentation of any kind. I want to …

python introspection python-2.5
Call private methods and private properties from outside a class in PHP

I want to access private methods and variables from outside the classes in very rare specific cases. I've seen that …

php visibility introspection
How do you list the currently available objects in the current scope in ruby?

I'm new to ruby and I'm playing around with the IRB. I found that I can list methods of an …

ruby introspection irb
Inspect python class attributes

I need a way to inspect a class so I can safely identify which attributes are user-defined class attributes. The …

python class attributes introspection inspect
What is the equivalent of /proc/cpuinfo on FreeBSD v8.1?

What is the equivalent of Linux's /proc/cpuinfo on FreeBSD v8.1? My application reads /proc/cpuinfo and saves the information …

linux cpu porting introspection freebsd
what's the biggest difference between dir and __dict__ in python

class C(object): def f(self): print self.__dict__ print dir(self) c = C() c.f() output: {} ['__class__', …

python introspection
How to get current function into a variable?

How can I get a variable that contains the currently executing function in Python? I don't want the function's name. …

python function introspection