クラス
jdk.nashorn.api.scripting.ScriptObjectMirrorの使用
-
ScriptObjectMirrorを使用するパッケージ パッケージ 説明 jdk.nashorn.api.scripting このパッケージでは、Nashornを使用する推奨方法であるjavax.script
の統合を提供します。jdk.nashorn.api.tree NashornパーサーAPIは、ECMAScriptソース・コードを抽象構文ツリー(AST)およびParserとして表現するためのインタフェースを提供し、ECMAScriptソース・スクリプトを解析します。 -
-
jdk.nashorn.api.scriptingのScriptObjectMirrorの使用
ScriptObjectMirrorを返すjdk.nashorn.api.scriptingのメソッド 修飾子と型 メソッド 説明 ScriptObjectMirror
ScriptObjectMirror. freeze()
削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。ECMA 15.2.39 - freezeの実装。ScriptObjectMirror
ScriptObjectMirror. preventExtensions()
削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。このスクリプト・オブジェクトを拡張不可としてフラグを設定しますScriptObjectMirror
ScriptObjectMirror. seal()
削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。ECMAScript 15.2.3.8 - sealの実装static ScriptObjectMirror
ScriptUtils. wrap(Object obj)
削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。必要な場合は指定のオブジェクト上でスクリプト・オブジェクト・ミラーを作成します。 -
jdk.nashorn.api.treeでのScriptObjectMirrorの使用
型ScriptObjectMirrorのパラメータを持つjdk.nashorn.api.treeのメソッド 修飾子と型 メソッド 説明 CompilationUnitTree
Parser. parse(ScriptObjectMirror scriptObj, DiagnosticListener listener)
削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。スクリプト・オブジェクトからソースを解析し、コンパイル単位ツリーを返します。
-