Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.vinculum.javascript
Class Shell  view Shell download Shell.java

java.lang.Object
  extended byScriptableObject
      extended bycom.vinculum.javascript.Shell

public class Shell
extends ScriptableObject


Field Summary
private static Shell global
           
private static Context globalcx
           
private static Scriptable globalScope
           
 
Constructor Summary
Shell()
           
 
Method Summary
static void attachThread()
           
private  java.lang.Object callFunction(Scriptable scope, java.lang.String functionName, java.lang.Object[] args)
           
 java.lang.String getClassName()
           
static Shell getInstance()
           
static Scriptable getScope()
           
 boolean handleExpression(Scriptable scope, java.lang.String sourceName, java.lang.String expression, boolean isScript)
           
static void putInScope(Scriptable scope, java.lang.String name, java.lang.Object obj)
           
private  void readScriptInScope(Scriptable scope, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

global

private static Shell global

globalcx

private static Context globalcx

globalScope

private static Scriptable globalScope
Constructor Detail

Shell

public Shell()
Method Detail

getInstance

public static Shell getInstance()

attachThread

public static void attachThread()

getScope

public static Scriptable getScope()

getClassName

public java.lang.String getClassName()

putInScope

public static void putInScope(Scriptable scope,
                              java.lang.String name,
                              java.lang.Object obj)

handleExpression

public boolean handleExpression(Scriptable scope,
                                java.lang.String sourceName,
                                java.lang.String expression,
                                boolean isScript)
                         throws JavaScriptException

readScriptInScope

private void readScriptInScope(Scriptable scope,
                               java.lang.String fileName)

callFunction

private java.lang.Object callFunction(Scriptable scope,
                                      java.lang.String functionName,
                                      java.lang.Object[] args)