Beginning Java SE 6 Platform From Novice to Professional phần 7

NullPointerException là ném nếu basename là null. Trả về một có getFormats () phương thức trả về các định dạng quy định, và có getFallBackLocale () phương thức trả về null. NullPointerException được ném nếu danh sách các định dạng là null. | CHAPTER 9 SCRIPTING 283 Class Interface Description ScriptEngineManager A class that is the entry point into the Scripting API. It discovers and instantiates script engine factories providing a method that lets an application enumerate these factories and retrieve a script engine that exposes the appropriate metadata such as the correct language name and version number from a factory. It also provides various methods for obtaining script engines by extension MIME type or short name. This class maintains a global scope this scope s key value pairs are available to all script engines created by the script engine manager. ScriptException A class that describes syntax errors and other problems that occur during script execution. Class members store the line number and column position where a problem occurred and also the name of the file containing the script that was executing. The availability of this information depends on the context in which the problem occurred. For example a ScriptException thrown from executing a script that is not based on a file is unlikely to record a filename. SimpleBindings A class that provides a simple implementation of Bindings which is backed by some kind of implementation. SimpleScriptContext A class that provides a simple implementation of ScriptContext. In addition to and its classes and interfaces Java SE 6 includes a script engine that understands JavaScript. This script engine is based on the Mozilla Rhino JavaScript implementation. Check out Mozilla s Rhino JavaScript for Java page http rhino to learn about Rhino. Note Mozilla Rhino version is included with Java SE 6 build 105. This implementation includes most of Mozilla Rhino except for JavaScript-to-bytecode compilation Rhino s JavaAdapter for extending Java classes and implementing Java interfaces with JavaScript Sun s JavaAdapter is used instead ECMAScript for XML and Rhino command-line tools. An experimental command-line .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
283    635    1    24-06-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.