用计算机语言英文翻译,关于计算机专业计算机语言有关的外文文献翻译成品:用Nashorn编写脚本(中英文双语对照).docx...

此文档是毕业设计外文翻译成品( 含英文原文+中文翻译),无需调整复杂的格式!下载之后直接可用,方便快捷!本文价格不贵,也就几十块钱!一辈子也就一次的事!

文献出处:Kishori Sharan Scripting in Java Integrating with Groovy and JavaScript,2019(如觉得年份太老,可改为近2年,毕竟很多毕业生都这样做)

英文4116单词,23761字符(字符就是印刷符),中文6364汉字。(如果字数多了,可自行删减,大多数学校都是要求选取外文的一部分内容进行翻译的。)

Writing Scripts in Nashorn

In this chapter, you will learn:

1.How to write scripts in Nashorn

2.The difference between running the script in strict mode and nonstrict mode

3.How to declare variables and write comments

4.Primitive and object data types, and how to convert values of one data type to another data type

5.Operators, statements, and creating and invoking functions in Nashorn

6.Different ways of creating and using objects

7.Variable scoping and hoisting

8.About built-in global objects and functions

Nashorn is a runtime implementation of the ECMAScript 5.1 specification on the JVM. ECMAScript defines its own syntax and constructs for declaring variables, writing statements, operators, creating and using objects, collections, iterating over collections of data, and so on. Nashorn is 100 percent compliant with the ECMAScript 5.1, so you have a new set of language syntax to learn when you work with Nashorn. For example, working with objects in Nashorn is entirely different from working with objects in Java.

This chapter assumes that you have at least a beginner-level understanding of the Java programming language. I will not explain details of the constructs and syntax offered by Nashorn that work the same way as they work in Java. For example, I will not explain what the assignment operator = in Nashorn does. Rather, I will simply mention that the assignment operator = works the same in Nashorn and Java. The power of Nashorn is that it lets you use Java libraries inside scripts. However, to use Java libraries inside Nashorn, you must know the Nashorn syntax and constructs. This chapter gives you a brief overview of Nashorn syntax and constructs.

Strict and Nonstrict Modes

Nashorn can operate in two

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值