Uh oh!
There was an error while loading. Please reload this page.
Node inspector - #43
Conversation
…avaXF Beans Properties and allows custom inspect strings to be set
byteit101
commented
Apr 20, 2013
Hey a fix for #40. In my quick scan over it looks fairly good except this:
just put it in node.rb. |
enebo
commented
Apr 20, 2013
I doubt anyone will ever call 'discover_properties' outside of inspect, but the logic below seems like it belongs (in some form) in discover_properties just in case something else ever wants that info. Otherwise each consumer needs to know to perform this ||'ing: (self.class.instance_variable_get('@inspect_properties')||discover_properties). |
byteit101
commented
Apr 20, 2013
Hey wait a minute! Is there a reason you can't use toString? is what I just got from debugging a hybrid jrubyfx/java app |
byteit101
commented
May 17, 2013
@whitehat101 toString is quite variable in its coverage. If you update this pr to inject itself into the new precompilation phase (second half of dsl.rb) with all the reflected properties pre-computed, I'll pull it |
I was sad that calling #inspect on Java FX objects didn't return much useful information.
This pull only deals with
#inspecton objects descended fromNode. It is able to discover all the properties of just the top class. (It can be used for more custom inspections, seeinspector_spec)Lots of examples in the specs.
I'd like to get a useful inspect for Events as well, someday.
Enjoy!
dirty: https://github.com/whitehat101/jrubyfx/tree/inspector