WhatsApp : +918121020333 / +919849510373

India: +91 40 6050 1418

USA: +1 516 8586 242

UK: +44 (0)203 371 0077

groovy training

groovy training Course Content

Language Overview
  • What is Groovy?
  • What Groovy can do
  • Java programmers
  • Script programmers
  • Agile programming
  • Installing
  • Running Groovy scripts
Basic Syntax and Scalar Variables
  • Syntax rules
  • Numbers – Integers, Floats, and Big Decimal
  • Strings
  • Double quoted
  • Single quoted
  • Here documents
  • Slash quoted
  • GStrings
  • Operators
  • Collections
  • Lists
  • Coding a closure
  • The it parameter
  • Passing multiple parameters
  • Naming parameters (the -> operator)
  • Maps
  • Ranges
Flow Control
  • If statements
  • The truth in Groovy
  • Switch statements
  • While loops
  • For loops
  • Exceptions
Classes
  • Defining classes
  • File-to-class relationships
  • Member variables
  • Automatic getter/setter generation
  • Default visibility
  • Safe dereferencing with ? operator
Methods
  • Optional parameters and default parameters
  • Operator overloading
  • Automatic constructor generation
  • Initializing property values in the constructor
  • The Closure Groovy class
  • Coding a method that expects a closure
  • Calling into the closure
  • Passing parameters
Advanced Classes and Closures
  • Closures
  • Using methods as closures
  • Polymorphic closures
  • Operator overloading
  • Meta programming
  • Discovering a class
  • Discovering fields
  • Discovering methods
  • Method resolution
  • Meta Class
  • Meta Property
  • Meta Method
  • Pointers
  • Method
  • Field
  • Calling methods that do not exist
  • Expand Meta Class
  • Categories
Regular Expressions
  • Regular Expression syntax
  • The =~ operator
  • The ==~ operator
  • Common methods that use Regular Expressions
Builders and Slurpers
  • What are Builders and Slurpers?
  • Node Builder
  • MarkupBuilder
  • AntBuilder
  • Creating custom builders
  • Using the ConfigSlurper
  • Writing a Slurper