
By Fergal Dearle
ISBN-10: 1849695407
ISBN-13: 9781849695404
Extend and increase your Java functions with domain-specific scripting in Groovy
About This Book
- Build domain-specific mini languages in Groovy that combine seamlessly together with your Java apps with this hands-on guide
- Increase stakeholder participation within the improvement strategy with domain-specific scripting in Groovy
- Get up to the mark with the latest good points in Groovy utilizing this moment version and combine Groovy-based DSLs into your latest Java applications.
Who This ebook Is For
This publication is for Java software program builders who've an curiosity in development area scripting into their Java functions. No wisdom of Groovy is needed, even though it might be precious. This ebook doesn't train Groovy, yet speedy introduces the elemental rules of Groovy. An skilled Java developer shouldn't have any issues of those and flow quick directly to the extra concerned features of making DSLs with Groovy. No event of making a DSL is required.
What you are going to Learn
- Familiarize your self with Groovy scripting and paintings with Groovy closures
- Use the meta-programming good points in Groovy to construct mini languages
- Employ Groovy mark-up and developers to simplify program development
- Familiarize your self with Groovy mark-up and construct your personal Groovy builders
- Build potent DSLs with operator overloading, command chains, developers, and a number of different Groovy language features
- Integrate Groovy together with your Java and JVM dependent applications
In Detail
The instances whilst constructing at the JVM intended you have been a Java programmer have lengthy handed. The JVM is now firmly proven as a polyglot improvement surroundings with many tasks determining replacement improvement languages to Java equivalent to Groovy, Scala, Clojure, and JRuby. during this pantheon of improvement languages, Groovy stands proud for its first-class DSL allowing good points which permits it to be manipulated to supply mini languages which are adapted to a project’s needs.
A complete educational on designing and constructing mini Groovy established area particular Languages, this e-book will consultant you thru the improvement of numerous mini DSLs to help you achieve the entire abilities had to increase your personal Groovy dependent DSLs with self assurance and ease.
Starting with the naked fundamentals, this e-book will concentrate on how Groovy can be utilized to build area particular mini languages, and may struggle through the extra advanced meta-programming good points of Groovy, together with utilizing the summary Syntax Tree (AST). useful examples are used all through this booklet to de-mystify those doubtless advanced language positive aspects and to teach how they are often used to create uncomplicated and chic DSLs. jam-packed with examples, together with numerous totally labored DSLs, this booklet will function a springboard for constructing your personal DSLs.
Style and approach
This ebook is a hands-on advisor that may stroll you thru examples for construction DSLs with Groovy instead of simply conversing approximately "metaprogramming with Groovy". The examples during this booklet were designed that can assist you achieve a superb operating wisdom of the options concerned and observe those to generating your personal Groovy dependent DSLs.