This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Groovy and the fly likes Inspecting Groovy Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Inspecting Groovy Object" Watch "Inspecting Groovy Object" New topic
Author

Inspecting Groovy Object

Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Hi,

I've been playing with Groovy for the past few months. I like it, but sometimes I also get frustated with the dynamic type of Groovy. I tend to use groovy.inspect.swingui.ObjectBrowser.inspect(obj) everytime I encounter an object, which I don't know the type and look it up in the Groovy Doc for all the available methods or properties. This is quite a tedious process and so far no code completion from major IDEs. Am I missing something here? What do you guys normally use while developing Groovy?


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

What "major IDEs" are you referring to? Intellij has excellent code completion for Groovy objects. Aside from that, we do what you do. It's just the nature of dynamic languages.


GenRocket - Experts at Building Test Data
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

I'm referring to Eclipse or NetBeans. Maybe I should give IntelliJ a shot. OK, thanks for your reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inspecting Groovy Object
 
Similar Threads
How Groovy should be used with big projects?
AOP or OOP
Does Groovy Work in a PHP Environment?
What is Groovy and in which cases we need Groovy?
Grail Tutorials