• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need some clarification on groovy things

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I need some clarifications on groovy things if you kind enough to do...
Please Elaborate the followings,i searched but didn't find any satisfactory solution.
why some of the Variables have Type defined and other don’t?
Why some methods have lines under the methods?
Clibuilder allows us to invoke non-existing one-letter methods which turns into one letter shorcut. what does it mean?
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Groovy editor now underlines all references that cannot be determined while editing.

Why do some variable have types and others don't? That's just the flexibility of Groovy. If typing makes sense you can use it.

Clibuilder allows us to invoke non-existing one-letter methods which turns into one letter shortcut. what does it mean?


Can you post an example?
 
Usman Mohy ud Din
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i don't know exact example about this.I am sharing the link where i read, may be you can find that phrase in example mentioned.
http://mrhaki.blogspot.com/2009/09/groovy-goodness-parsing-commandline.html
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From reading the documentation on CliBuilder I think what mrhaki is talking about is the ability to add usage documentation to your CLI invocation. So if you're invoking ls -a you can set cli.a() even though a is not a method; it is added ad hoc. I don't know what mrhaki meant by "shortcut".

 
Usman Mohy ud Din
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Knute Snortum,
i have some idea now
 
reply
    Bookmark Topic Watch Topic
  • New Topic