|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helma.javascript.GlobalFunctions
public class GlobalFunctions
This class contains the native functions Helma adds to the global scope.
| Constructor Summary | |
|---|---|
GlobalFunctions()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
getResource(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Add a resource to the application classpath. |
static java.lang.Object |
getResources(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Get a list of resource wrapped as JS array. |
static java.lang.Object |
importFromModule(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Evaluate a JavaScript resource. |
static java.lang.Object |
importJar(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Add a resource to the application classpath. |
static java.lang.Object |
importModule(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Evaluate a JavaScript resource. |
static void |
init(org.mozilla.javascript.ScriptableObject scope)
Init functions on a new top level scope |
static java.lang.Object |
parseSkin(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
Parse a string or resource as skin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalFunctions()
| Method Detail |
|---|
public static void init(org.mozilla.javascript.ScriptableObject scope)
scope - the global scope
public static java.lang.Object importModule(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
throws org.mozilla.javascript.JavaScriptException,
java.io.IOException
cx - the current contextthisObj - the object the function is called onargs - the argumentsfunObj - the function object
org.mozilla.javascript.JavaScriptException - javascript evaluation error
java.io.IOException - error reading the resource
public static java.lang.Object importFromModule(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
throws org.mozilla.javascript.JavaScriptException,
java.io.IOException
cx - the current contextthisObj - the object the function is called onargs - the argumentsfunObj - the function object
org.mozilla.javascript.JavaScriptException - javascript evaluation error
java.io.IOException - error reading the resource
public static java.lang.Object importJar(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
throws java.net.MalformedURLException
cx - the current contextthisObj - the object the function is called onargs - the argumentsfunObj - the function object
java.net.MalformedURLException - resource delivered bogus URL
public static java.lang.Object getResource(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
cx - the current contextthisObj - the object the function is called onargs - the argumentsfunObj - the function object
public static java.lang.Object getResources(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
cx - the current contextthisObj - the object the function is called onargs - the argumentsfunObj - the function object
public static java.lang.Object parseSkin(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function funObj)
throws java.io.IOException,
UnbalancedTagException
cx - the current contextthisObj - the object the function is called onargs - the argumentsfunObj - the function object
java.io.IOException - an I/O related error occurred
UnbalancedTagException - the skin contains unbalanced macro tags
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||