org.apache.commons.jexl3.internal
Class Script.Curried
java.lang.Object
org.apache.commons.jexl3.internal.Script
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.
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 |
Script.Curried
protected Script.Curried(Script base,
Object[] args)
- Creates a curried version of this script.
- Parameters:
base
- the base scriptargs
- the arguments
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.