com.plotnix.jex.javascript
Class JavaScriptVariableExpression

java.lang.Object
  |
  +--com.plotnix.jex.javascript.JavaScriptExpression
        |
        +--com.plotnix.jex.javascript.JavaScriptVariableExpression
All Implemented Interfaces:
VariableExpression

public class JavaScriptVariableExpression
extends JavaScriptExpression
implements VariableExpression

Version:
$Revision$ $Date$
Author:
Dmitri Plotnikov

Fields inherited from class com.plotnix.jex.javascript.JavaScriptExpression
JS_AUTODECLARE, JS_GLOBAL_SCOPE_PROPERTY, JS_PSEUDO_VARIABLE, JS_SCOPE_PROPERTY
 
Constructor Summary
JavaScriptVariableExpression(org.mozilla.javascript.Script script)
           
 
Method Summary
 void assign(Context context, java.lang.Object value, java.lang.Object[] arguments)
          Modifies a value in the specified context according to the expression and the supplied arguments.
 
Methods inherited from class com.plotnix.jex.javascript.JavaScriptExpression
getContextScope, getGlobalScope, getLocalScope, getLocalScope, getScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptVariableExpression

public JavaScriptVariableExpression(org.mozilla.javascript.Script script)
Parameters:
script - is a compiled JavaScript to be associated with this expression
Method Detail

assign

public void assign(Context context,
                   java.lang.Object value,
                   java.lang.Object[] arguments)
Description copied from interface: VariableExpression
Modifies a value in the specified context according to the expression and the supplied arguments. Casts the type of the value if necessary.
Specified by:
assign in interface VariableExpression
See Also:
VariableExpression.assign(Context, Object, Object[])


Copyright (c) 2002 - Plotnix, Inc