org.apache.commons.jexl3.internal
Class Script.Curried

java.lang.Object
  extended by org.apache.commons.jexl3.internal.Script
      extended by org.apache.commons.jexl3.internal.Script.Curried
All Implemented Interfaces:
JexlExpression, JexlScript
Enclosing class:
Script

public static class Script.Curried
extends Script

A script whose parameters are (partially) bound.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.jexl3.internal.Script
Script.Callable, Script.Curried
 
Field Summary
 
Fields inherited from class org.apache.commons.jexl3.internal.Script
jexl, script, source, version
 
Constructor Summary
protected Script.Curried(Script base, Object[] args)
          Creates a curried version of this script.
 
Method Summary
protected  Scope.Frame createFrame(Object[] args)
          Creates this script frame for evaluation.
 boolean equals(Object obj)
           
 Object execute(JexlContext context)
          Executes the script with the variables contained in the supplied JexlContext.
 Object execute(JexlContext context, Object... args)
          Executes the script with the variables contained in the supplied JexlContext and a set of arguments corresponding to the parameters used during parsing.
 int hashCode()
           
 
Methods inherited from class org.apache.commons.jexl3.internal.Script
callable, callable, checkCacheVersion, createInterpreter, curry, evaluate, getEngine, getLocalVariables, getParameters, getParsedText, getParsedText, getPragmas, getSourceText, getVariables, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Script.Curried

protected Script.Curried(Script base,
                         Object[] args)
Creates a curried version of this script.

Parameters:
base - the base script
args - the arguments
Method Detail

createFrame

protected Scope.Frame createFrame(Object[] args)
Description copied from class: Script
Creates this script frame for evaluation.

Overrides:
createFrame in class Script
Parameters:
args - the arguments to bind to parameters
Returns:
the frame (may be null)

equals

public boolean equals(Object obj)
Overrides:
equals in class Script

hashCode

public int hashCode()
Overrides:
hashCode in class Script

execute

public Object execute(JexlContext context)
Description copied from interface: JexlScript
Executes the script with the variables contained in the supplied JexlContext.

Specified by:
execute in interface JexlScript
Overrides:
execute in class Script
Parameters:
context - A JexlContext containing variables.
Returns:
The result of this script, usually the result of the last statement.

execute

public Object execute(JexlContext context,
                      Object... args)
Description copied from interface: JexlScript
Executes the script with the variables contained in the supplied JexlContext and a set of arguments corresponding to the parameters used during parsing.

Specified by:
execute in interface JexlScript
Overrides:
execute in class Script
Parameters:
context - A JexlContext containing variables.
args - the arguments
Returns:
The result of this script, usually the result of the last statement.


Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.