groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aseem Bansal <asmbans...@gmail.com>
Subject Re: Convenient API reference
Date Fri, 29 Jan 2016 17:12:48 GMT
Hi Pascal

Regarding getting autocomplete

Enter
a = new File('/home/aseem/')

Now hit tab after typing a.

eachFile is not present. There is autocomplete but suggestions are missing

Regarding the doc command. That's nice. But in case of Python you get
something like man pages without any internet connection. Is there
something like that present?

On Fri, Jan 29, 2016 at 10:19 PM, Pascal Schumacher <
pascalschumacher@gmx.net> wrote:

> 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 java.io.File"
> open the Oracle and the Groovy GDK documentation in a browser
>
>

Mime
View raw message