| java.lang.Object com.caucho.es.ESBase com.caucho.es.Global
Global | public class Global extends ESBase (Code) | | Implementation class for the global prototype
|
Global | Global(HashMap properties, Object proto, Path classDir, Path scriptPath, ClassLoader parentLoader) throws Throwable(Code) | | Creates a new global object for a script thread.
Parameters: properties - any global properties for the script Parameters: proto - a Java prototype object underlying the global object Parameters: classDir - work directory where generated classes will go Parameters: scriptPath - a path for searching scripts Parameters: parentLoader - the parent class loader. |
addScript | public void addScript(String name, Script script)(Code) | | Sets a running script.
Parameters: name - classname of the script. Parameters: script - the script itself. |
begin | Global begin()(Code) | | Starts execution of a JavaScript thread.
the old global context for the thread. |
clearMark | void clearMark()(Code) | | |
createArray | ESArray createArray()(Code) | | Somewhat bogus for creating based on globals.
"this" is the global
|
end | static void end(Global oldGlobal)(Code) | | Completes execution of a JavaScript thread, restoring the global context.
Parameters: oldGlobal - the old global context for the thread. |
findScript | Script findScript(String className) throws Throwable(Code) | | Returns the named script. If the script has already been loaded,
return the old script.
|
getClassDir | public Path getClassDir()(Code) | | |
getGlobalProto | public static Global getGlobalProto()(Code) | | Returns the global prototype for the current thread.
|
getLineMap | LineMap getLineMap(String className)(Code) | | Returns the line map for the named class to translate Java line
numbers to javascript line numbers.
Parameters: className - class throwing the error. the line map. |
getScriptPath | public Path getScriptPath()(Code) | | |
Methods inherited from com.caucho.es.ESBase | public ESBase call(Call eval, int length) throws Throwable(Code)(Java Doc) public ESBase call(Call eval, int length, ESString key) throws Throwable(Code)(Java Doc) boolean canPut(ESString name)(Code)(Java Doc) public ESBase construct(Call eval, int length) throws Throwable(Code)(Java Doc) Object copy(HashMap refs)(Code)(Java Doc) public ESBase delete(ESString key) throws Throwable(Code)(Java Doc) ESBase delete(String key) throws Throwable(Code)(Java Doc) ESBase delete(int i) throws Throwable(Code)(Java Doc) public boolean ecmaEquals(ESBase b) throws Throwable(Code)(Java Doc) String getClassName()(Code)(Java Doc) public Class getJavaType()(Code)(Java Doc) public ESBase getProperty(ESString key) throws Throwable(Code)(Java Doc) public ESBase getProperty(String key) throws Throwable(Code)(Java Doc) ESBase getProperty(int i) throws Throwable(Code)(Java Doc) public boolean greaterThan(ESBase ob, boolean neg) throws Throwable(Code)(Java Doc) public ESBase hasProperty(ESString key) throws Throwable(Code)(Java Doc) ESBase hasProperty(int i) throws Throwable(Code)(Java Doc) static void init(ESFactory factory)(Code)(Java Doc) public boolean isBoolean()(Code)(Java Doc) public boolean isNum()(Code)(Java Doc) public boolean isString()(Code)(Java Doc) public Iterator keys() throws Throwable(Code)(Java Doc) public boolean lessThan(ESBase ob, boolean neg) throws Throwable(Code)(Java Doc) public ESBase plus(ESBase b) throws Throwable(Code)(Java Doc) public void setProperty(ESString key, ESBase value) throws Throwable(Code)(Java Doc) public void setProperty(String key, ESBase value) throws Throwable(Code)(Java Doc) public void setProperty(int i, ESBase value) throws Throwable(Code)(Java Doc) public boolean toBoolean()(Code)(Java Doc) public int toInt32() throws Throwable(Code)(Java Doc) public Object toJavaObject() throws ESException(Code)(Java Doc) public String toJavaString() throws Throwable(Code)(Java Doc) public double toNum() throws Throwable(Code)(Java Doc) public ESObject toObject() throws ESException(Code)(Java Doc) public ESBase toPrimitive(int type) throws Throwable(Code)(Java Doc) public ESBase toPrimitive() throws Throwable(Code)(Java Doc) public ESString toSource(IntMap map, boolean isLoopPass) throws Throwable(Code)(Java Doc) public ESString toStr() throws Throwable(Code)(Java Doc) public String toString()(Code)(Java Doc) public ESBase typeof() throws ESException(Code)(Java Doc) public ESBase valueOf() throws Throwable(Code)(Java Doc)
|
|
|