Groovy programming an introduction for Java developers
Groovy Programming is an introduction to the Java-based scripting language Groovy. Groovy has much in common with popular scripting languages such as Perl, Python, and Ruby, but is written in a Java-like syntax. And, unlike these other languages, Groovy is sanctioned by the Java community for use on...
Autor principal: | |
---|---|
Otros Autores: | |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
San Francisco, CA :
Morgan Kaufmann Publishers
2006.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627279706719 |
Tabla de Contenidos:
- Front Cover; Title page; Copyright page; Table of Contents; Foreword; Preface; Organization; Conventions; Software Distribution; Acknowledgements; About the Authors; Chapter 1: Groovy; 1.1 Why Scripting?; 1.2 Why Groovy?; Chapter 2: Numbers and Expressions; 2.1 Numbers; 2.2 Expressions; 2.3 Operator Precedence; 2.4 Assignment; 2.5 Increment and Decrement Operators; 2.6 Object References; 2.7 Relational and Equality Operators; 2.8 Exercises; Chapter 3: Strings and Regular Expressions; 3.1 String Literals; 3.2 String Indexing and Slicing; 3.3 Basic Operations; 3.4 String Methods
- 3.5 String Comparison3.6 Regular Expressions; 3.7 Exercises; Chapter 4: Lists, Maps, and Ranges; 4.1 Lists; 4.2 List Methods; 4.3 Maps; 4.4 Map Methods; 4.5 Ranges; 4.6 Exercises; Chapter 5: Simple Input and Output; 5.1 Simple Output; 5.2 Formatted Output; 5.3 Simple Input; 5.4 Exercises; Chapter 6: Case Study: A Library Application (Modeling); 6.1 Iteration 1: Specification and List Implementation; 6.2 Iteration 2: Map Implementation; 6.3 Exercises; Chapter 7: Methods; 7.1 Methods; 7.2 Method Parameters; 7.3 Default Parameters; 7.4 Method Return Values; 7.5 Parameter Passing; 7.6 Scope
- 7.7 Collections as Method Parameters and Return Values7.8 Exercises; Chapter 8: Flow of Control; 8.1 While Statement; 8.2 For Statement; 8.3 If Statement; 8.4 Switch Statement; 8.5 Break Statement; 8.6 Continue Statement; 8.7 Exercises; Chapter 9: Closures; 9.1 Closures; 9.2 Closures, Collections, and Strings; 9.3 Other Closure Features; 9.4 Exercises; Chapter 10: Files; 10.1 Command Line Arguments; 10.2 File Class; 10.3 Exercises; Chapter 11: Case Study: A Library Application (Methods, Closures); 11.1 Iteration 1: Specification and Map Implementation
- 11.2 Iteration 2: Implementation of a Text-Based User Interface11.3 Iteration 3: Implementation with Closures; 11.4 Exercises; Chapter 12: Classes; 12.1 Classes; 12.2 Composition; 12.3 Exercises; Chapter 13: Case Study: A Library Application (Objects); 13.1 Specification; 13.2 Iteration 1: An Initial Model; 13.3 Iteration 2: Augment the Model; 13.4 Iteration 3: Reinstate the User Interface; 13.5 Exercises; Chapter 14: Inheritance; 14.1 Inheritance; 14.2 Inherited Methods; 14.3 Redefined Methods; 14.4 Polymorphism; 14.5 The Abstract Class; 14.6 The Interface Class; 14.7 Exercises
- Chapter 15: Unit Testing (JUnit)15.1 Unit Testing; 15.2 The GroovyTestCase and JUnit TestCase Classes; 15.3 The GroovyTestSuite and JUnit TestSuite Classes; 15.4 The Role of Unit Testing; 15.5 Exercises; Chapter 16: Case Study: A Library Application (Inheritance); 16.1 Specification; 16.2 Iteration 1: Confirm the Polymorphic Effect; 16.3 Iteration 2: Demonstrate the Required Functionality; 16.4 Iteration 3: Provide User Feedback; 16.5 Iteration 4: Enforce Constraints; 16.6 Exercises; Chapter 17: Persistence; 17.1 Simple Queries; 17.2 Relations; 17.3 Database Updates; 17.4 Objects from Tables
- 17.5 Inheritance