Package net.sf.jasperreports.javascript
Class JavaScriptFunctionsObject
- java.lang.Object
-
- net.sf.jasperreports.javascript.JavaScriptFunctionsObject
-
- All Implemented Interfaces:
org.mozilla.javascript.Scriptable
public class JavaScriptFunctionsObject extends Object implements org.mozilla.javascript.Scriptable
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description JavaScriptFunctionsObject(org.mozilla.javascript.Context context, FunctionsUtil functionsUtil, JREvaluator evaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(int index)
void
delete(String name)
Object
get(int index, org.mozilla.javascript.Scriptable start)
Object
get(String name, org.mozilla.javascript.Scriptable start)
String
getClassName()
Object
getDefaultValue(Class<?> hint)
Object[]
getIds()
org.mozilla.javascript.Scriptable
getParentScope()
org.mozilla.javascript.Scriptable
getPrototype()
boolean
has(int index, org.mozilla.javascript.Scriptable start)
boolean
has(String name, org.mozilla.javascript.Scriptable start)
boolean
hasInstance(org.mozilla.javascript.Scriptable instance)
void
put(int index, org.mozilla.javascript.Scriptable start, Object value)
void
put(String name, org.mozilla.javascript.Scriptable start, Object value)
protected Object
resolveFunction(String name, org.mozilla.javascript.Scriptable start)
void
setParentScope(org.mozilla.javascript.Scriptable parent)
void
setPrototype(org.mozilla.javascript.Scriptable prototype)
-
-
-
Constructor Detail
-
JavaScriptFunctionsObject
public JavaScriptFunctionsObject(org.mozilla.javascript.Context context, FunctionsUtil functionsUtil, JREvaluator evaluator)
-
-
Method Detail
-
getClassName
public String getClassName()
- Specified by:
getClassName
in interfaceorg.mozilla.javascript.Scriptable
-
get
public Object get(String name, org.mozilla.javascript.Scriptable start)
- Specified by:
get
in interfaceorg.mozilla.javascript.Scriptable
-
resolveFunction
protected Object resolveFunction(String name, org.mozilla.javascript.Scriptable start)
-
get
public Object get(int index, org.mozilla.javascript.Scriptable start)
- Specified by:
get
in interfaceorg.mozilla.javascript.Scriptable
-
has
public boolean has(String name, org.mozilla.javascript.Scriptable start)
- Specified by:
has
in interfaceorg.mozilla.javascript.Scriptable
-
has
public boolean has(int index, org.mozilla.javascript.Scriptable start)
- Specified by:
has
in interfaceorg.mozilla.javascript.Scriptable
-
put
public void put(String name, org.mozilla.javascript.Scriptable start, Object value)
- Specified by:
put
in interfaceorg.mozilla.javascript.Scriptable
-
put
public void put(int index, org.mozilla.javascript.Scriptable start, Object value)
- Specified by:
put
in interfaceorg.mozilla.javascript.Scriptable
-
delete
public void delete(String name)
- Specified by:
delete
in interfaceorg.mozilla.javascript.Scriptable
-
delete
public void delete(int index)
- Specified by:
delete
in interfaceorg.mozilla.javascript.Scriptable
-
getPrototype
public org.mozilla.javascript.Scriptable getPrototype()
- Specified by:
getPrototype
in interfaceorg.mozilla.javascript.Scriptable
-
setPrototype
public void setPrototype(org.mozilla.javascript.Scriptable prototype)
- Specified by:
setPrototype
in interfaceorg.mozilla.javascript.Scriptable
-
getParentScope
public org.mozilla.javascript.Scriptable getParentScope()
- Specified by:
getParentScope
in interfaceorg.mozilla.javascript.Scriptable
-
setParentScope
public void setParentScope(org.mozilla.javascript.Scriptable parent)
- Specified by:
setParentScope
in interfaceorg.mozilla.javascript.Scriptable
-
getIds
public Object[] getIds()
- Specified by:
getIds
in interfaceorg.mozilla.javascript.Scriptable
-
getDefaultValue
public Object getDefaultValue(Class<?> hint)
- Specified by:
getDefaultValue
in interfaceorg.mozilla.javascript.Scriptable
-
hasInstance
public boolean hasInstance(org.mozilla.javascript.Scriptable instance)
- Specified by:
hasInstance
in interfaceorg.mozilla.javascript.Scriptable
-
-