Scripting in Java: Integrating with Groovy and JavaScript

0
(0)

Scripting in Java: Integrating with Groovy and JavaScript
 

  • Author:Kishori Sharan
  • Length: 388 pages
  • Edition: 1
  • Publisher: Apress
  • Publication Date: 2014-12-04
  • ISBN-10: 1484207149
  • ISBN-13: 9781484207147
  • Sales Rank: #4414724 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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 class library, including the new Java Collections and JavaFX 8 APIs. Most of the examples in this book use JavaScript on the Nashorn engine.

    Author Kishori Sharan will show you scripts in JavaScript to demonstrate its power and use in your Java applications. Some of the examples use the jrunscript and jjs command-line tools. Furthermore, debugging is discussed to equip you for situations when or if you encounter any issues with this kind of Java scripting. After reading and using this book, you will have most of what you need to do scripting in Java.

    What you’ll learn

    • How to execute scripts and pass parameters to scripts
    • What is the Java Scripting API as found in the new Java 8
    • How to write scripts in Nashorn and invoke procedures in scripts
    • How to use compiled scripts and use Java in scripting languages
    • How to use the new Java APIs, including JavaFX 8 and Collections in Nashorn
    • How to implement a script engine
    • How to use the jrunscript and jjs command-line tools

    Who this book is for

    This book is for those who have some experience with Java. Although it is not required, it would be helpful to have a basic knowledge of a scripting language before reading this book.

    Table of Contents

    Chapter 1: Getting Started
    Chapter 2: Executing Scripts
    Chapter 3: Passing Parameters to Scripts
    Chapter 4: Writing Scripts in Nashorn
    Chapter 5: Procedures and Compiled Scripts
    Chapter 6: Using Java in Scripting Languages
    Chapter 7: Collections
    Chapter 8: Implementing a Script Engine
    Chapter 9: The jrunscript Command-Line Shell
    Chapter 10: The jjs Command Line Tool
    Chapter 11: Using JavaFX in Nashorn
    Chapter 12: Java APIs for Nashorn
    Chapter 13: Debugging, Tracing, and Profiling Scripts

    中文:

    书名:Scripting in Java: Integrating with Groovy and JavaScript

    Scripting in Java 教您如何在开发Java应用程序时使用Java脚本API和JavaScript来执行脚本并利用脚本语言的功能。该书还介绍了使脚本语言能够利用Java特性和Java类库的主题,包括新的Java集合和JavaFX 8API。本书中的大多数示例都在Nashorn引擎上使用了JavaScript。

    作者Kishori Sharan将向您展示用JavaScript编写的脚本,以演示它的强大功能以及在Java应用程序中的使用。其中一些示例使用jrunscript和jjs命令行工具。此外,还讨论了调试,以便在遇到此类Java脚本编写问题时做好准备。阅读并使用本书后,您将掌握用Java编写脚本所需的大部分内容。

    What you’ll learn

    • 如何执行脚本并将参数传递给脚本
    • 新的Java 8中的Java脚本API是什么
    • 如何用Nashorn编写脚本并在脚本中调用过程
    • 如何在脚本语言中使用编译后的脚本和Java
    • 如何使用新的Java API,包括Java FX 8和Nashorn中的集合
    • 如何实现脚本引擎
    • How to use the jrunscript and jjs command-line tools

    Who this book is for

    这本书是为那些对Java有一定经验的人写的。虽然这不是必需的,但在阅读本书之前,了解一下脚本语言的基本知识会很有帮助。

    Table of Contents

    Chapter 1: Getting Started
    第2章:执行脚本
    第3章:向脚本传递参数
    Chapter 4: Writing Scripts in Nashorn
    第5章:程序和编译的脚本
    第6章:在脚本语言中使用Java
    Chapter 7: Collections
    第8章:实现脚本引擎
    第9章:jrunscript命令行外壳
    第10章:jjs命令行工具
    第11章:在Nashorn中使用JavaFX
    第12章:面向Nashorn的Java API
    第13章:调试、跟踪和性能分析脚本

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册