|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.carabiner.treeeditor.js.JSRunner
public class JSRunner
JavaScriptの実行エンジンです。
| フィールドの概要 | |
|---|---|
static String |
DEFAULT_ENCODING
デフォルトのエンコーディングを取得します。 |
| コンストラクタの概要 | |
|---|---|
JSRunner(TreeEditorFrame frame,
JSApp caller,
File baseDir,
File persistentDir,
JSSettings settings)
構築します。 |
|
| メソッドの概要 | ||
|---|---|---|
void |
dispose()
破棄します。 |
|
void |
evaluate(org.mozilla.javascript.Callable callback,
Object[] args)
コールバックを評価します。 |
|
static void |
evaluate(org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
File targetFile,
String encoding)
ファイルを評価します。 |
|
void |
evaluate(File targetFile,
ClassLoader classLoader)
スクリプトを評価します。 |
|
void |
evaluate(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Callable callback,
Object[] args)
コールバックを評価します。 |
|
boolean |
evaluateWithBooleanReturn(org.mozilla.javascript.Callable callback,
Object[] args)
コールバックを評価します。 |
|
org.mozilla.javascript.Context |
getExecutingContext()
実行中のコンテキストを取得します。 |
|
File |
getFile(String path)
ファイルを取得します。 |
|
JSRunner |
getJSRunner()
JavaScriptエンジンを取得します。 |
|
JSApp |
getMyApplication()
アプリケーションを取得します。 |
|
File |
getPersistentFile(String path)
永続化ファイルを取得します。 |
|
org.mozilla.javascript.Scriptable |
getScope()
スコープを取得します。 |
|
JSSettings |
getSettings()
設定情報を取得します。 |
|
void |
invokeAndWait(JSRunnable runnable)
実行します。 |
|
|
registerJSComponent(T core,
JSComponent.AttachContext<T> context)
JSComponentの登録を通知します。 |
|
|
unregisterJSComponent(T core)
JSComponentの登録を解除します。 |
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final String DEFAULT_ENCODING
| コンストラクタの詳細 |
|---|
public JSRunner(TreeEditorFrame frame,
JSApp caller,
File baseDir,
File persistentDir,
JSSettings settings)
frame - フレーム。nullは不可。caller - 呼び出し元。nullは不可。baseDir - ベースディレクトリ。nullは不可。persistentDir - 永続化ディレクトリ。null可。settings - 設定情報。null可。| メソッドの詳細 |
|---|
public static void evaluate(org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
File targetFile,
String encoding)
throws IOException
context - コンテキスト。nullは不可。scope - スコープ。nullは不可。targetFile - 対象ファイル。nullは不可。
IOException - 入出力時のエラー。public JSApp getMyApplication()
JSAppContext の記述:
JSAppContext 内の getMyApplicationpublic JSRunner getJSRunner()
JSAppContext の記述:
JSAppContext 内の getJSRunner
public <T> void registerJSComponent(T core,
JSComponent.AttachContext<T> context)
JSAppContext の記述:
JSAppContext 内の registerJSComponentcore - コア。nullは不可。context - コンテキスト。nullは不可。public <T> void unregisterJSComponent(T core)
JSAppContext の記述:
JSAppContext 内の unregisterJSComponentcore - コア。nullは不可。登録時と同じコアである必要がある。public File getFile(String path)
path - パス。nullは不可。
public File getPersistentFile(String path)
path - パス。nullは不可。
public JSSettings getSettings()
public void evaluate(File targetFile,
ClassLoader classLoader)
throws IOException
targetFile - 対象ファイル。nullは不可。classLoader - クラスローダ。null可。
IOException - 入出力関係のエラー。
public void evaluate(org.mozilla.javascript.Callable callback,
Object[] args)
callback - コールバック。nullは不可。args - 引数。nullは不可。
public void evaluate(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Callable callback,
Object[] args)
scope - スコープ。nullは不可。callback - コールバック。nullは不可。args - 引数。nullは不可。
public boolean evaluateWithBooleanReturn(org.mozilla.javascript.Callable callback,
Object[] args)
callback - コールバック。nullは不可。args - 引数。nullは不可。
public org.mozilla.javascript.Scriptable getScope()
JSAppContext 内の getScopepublic org.mozilla.javascript.Context getExecutingContext()
public void invokeAndWait(JSRunnable runnable)
throws InvocationTargetException,
InterruptedException
runnable - 実行処理。nullは不可。
InvocationTargetException - 実行関係のエラー。
InterruptedException - 割り込み関係のエラー。public void dispose()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||