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 metho开发者_Python百科d. I can already get the method name and docstring, but cannot figure out how to get a list of decorators.I\[详细]
2023-01-07 01:48 分类:问答Retrieveing the Query that Created a Doctrine_Collection
I have a Doctrine_Collection object that was created with code that looks something like. $collection = Doctrine_Query::create()[详细]
2023-01-06 05:59 分类:问答List classes in directory (Python)
I\'m developing a Python 2.6 package in which I would like to fetch a list of all classes in a certain directory (within the package) in order to then perform introspection on the class objects.[详细]
2023-01-06 05:45 分类:问答How can a program on Linux introspect its pid?
How can a pro开发者_JAVA百科gram on Linux discover the process id of itself?Is there something in /proc/self that will do the trick?getpid(2).Try running on your terminal:[详细]
2023-01-05 23:39 分类:问答get object from a method in as3
Is there a way to know fr开发者_如何转开发om which object a method (a Function object) came from?[详细]
2023-01-04 09:45 分类:问答How to generate GIR files from the Vala compiler?
I am trying to create python bindings to a vala library using pygi with gobject introspection. However, I am having trouble generating the GIR files (that I am planning to compile to typelib files sub[详细]
2023-01-03 02:00 分类:问答Python Code Introspection and Analysis
I am trying to write a Python code analyzer, and I am trying to avoid having to parse bare Python text files.I was hoping that once the Python compiler/interpreter parses the code there\'s a way to ge[详细]
2023-01-02 06:11 分类:问答How to find hidden properties/methods in Javascript objects?
I would like to automatically determine all of the properties (including the hidden ones) in a given Javascript object, via a generalization of this[详细]
2023-01-01 20:16 分类:问答Why is there no way to do introspection in Objective C with Objects?
I have seen examples (on here especially) of calling hideous C functions and getting structures back that have to be iterated, replete with reams o开发者_StackOverflowf underbars.[详细]
2022-12-31 06:57 分类:问答How to make Spring accept fluent (non-void) setters?
I have an API which I am turning into an internal DSL. As such, most methods in my PoJos return a reference to this so that I can chain methods together declaratively as such (syntactic sugar).[详细]
2022-12-31 06:31 分类:问答