groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Schumacher <>
Subject Re: Convenient API reference
Date Fri, 29 Jan 2016 16:49:29 GMT
Hi Александр,

Am 29.01.2016 um 01:42 schrieb Александр Решитько:
> I give you some cases:
> - given an instance of a class in a groovy shell list it's available
> methods (the only thing I came up with is using a 
> groovy.inspect.swingui.ObjectBrowser)
groovysh has auto-completion just type "objectname." the press tab

> - given a Class name find out it's API and at least short descriptions 
> for its members (for
>   example groovy's File class has a neat method eachLine which I 
> couldn't find
>   neither in Oracle's Java official online API reference nor in 
> Groovy's GDK
>   reference - it might be there but I haven't found it when I needed 
> it). The
>   result is that I use google in such cases which isn't the right way 
> to do it
>   IMHO. groovysh doesn't always give auto complete suggestions for such
>   cases also.
> - given a class method get it's documentation
in groovysh you can use the doc command e.g. typing ":doc" 
open the Oracle and the Groovy GDK documentation in a browser

View raw message