com.plotnix.jex.javascript
Class JavaScriptValueExpression

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

public class JavaScriptValueExpression
extends JavaScriptExpression
implements Expression

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
JavaScriptValueExpression(org.mozilla.javascript.Script script)
           
 
Method Summary
 java.lang.Object evaluate(Context context, java.lang.Object[] arguments)
          Produces the value described by the expression in the specified context with the supplied arguments.
 java.lang.Object evaluate(Context context, java.lang.Object[] arguments, java.lang.Class valueType)
          Evaluates the expression and casts the result to the supplied type.
 
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

JavaScriptValueExpression

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

evaluate

public java.lang.Object evaluate(Context context,
                                 java.lang.Object[] arguments)
Description copied from interface: Expression
Produces the value described by the expression in the specified context with the supplied arguments.
Specified by:
evaluate in interface Expression
See Also:
Expression.evaluate(Context, Object[])

evaluate

public java.lang.Object evaluate(Context context,
                                 java.lang.Object[] arguments,
                                 java.lang.Class valueType)
Description copied from interface: Expression
Evaluates the expression and casts the result to the supplied type.
Specified by:
evaluate in interface Expression
See Also:
Expression.evaluate(Context, Object[], Class)


Copyright (c) 2002 - Plotnix, Inc