Scripting in Java Integrating with Groovy and JavaScript

Scripting in Java teaches you how to use the Java Scripting API and JavaScript to execute scripts and take advantage of the features of a scripting language while developing Java applications. The book also covers topics that enable scripting languages to take advantage of Java features and the Java...

Descripción completa

Detalles Bibliográficos
Autor principal: Sharan, Kishori. author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Berkeley, CA : Apress 2014.
Edición:1st ed. 2014.
Colección:Expert's voice in Java.
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629481306719
Tabla de Contenidos:
  • Contents at a Glance; Contents; About the Author; About the Technical Reviewers; Acknowledgments; Introduction; Chapter 1: Getting Started; What Is Scripting in Java?; Executing Your First Script; Using the jjs Command-line Tool; Printing Text in Nashorn; Using Other Scripting Languages; Exploring the javax.script Package; The ScriptEngine and ScriptEngineFactory Interfaces; The AbstractScriptEngine Class; The ScriptEngineManager Class; The Compilable Interface and the CompiledScript Class; The Invocable Interface; The Bindings Interface and the SimpleBindings Class
  • Changing the Default ScriptContextSending Scripts Output to a File; Summary; Chapter 4: Writing Scripts in Nashorn; Strict and Nonstrict Modes; Identifiers; Comments; Declaring Variables; Data Types; The Undefined Type; The Null Type; The Number Type; The Boolean Type; The String Type; Operators; Type Conversion; To Boolean Conversion; To Number Conversion; To String Conversion; Statements; Block Statement; Variable Statement; Empty Statement; Expression Statement; The if Statement; Iteration Statements; The continue, break, and return Statements; The with Statement; The switch Statement
  • Invoking Procedures in Scripts