Class Engine32
- java.lang.Object
-
- org.apache.commons.jexl3.JexlEngine
-
- org.apache.commons.jexl3.internal.Engine
-
- org.apache.commons.jexl3.internal.Engine32
-
public class Engine32 extends Engine
An Engine that behaves like JEXL 3.2, bugs included.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.jexl3.internal.Engine
Engine.VarCollector
-
Nested classes/interfaces inherited from class org.apache.commons.jexl3.JexlEngine
JexlEngine.EmptyContext, JexlEngine.EmptyNamespaceResolver, JexlEngine.Options
-
-
Field Summary
-
Fields inherited from class org.apache.commons.jexl3.internal.Engine
arithmetic, cache, cacheFactory, cacheThreshold, cancellable, charset, classNameSolver, collectMode, debug, expressionFeatures, functions, jxlt, logger, options, parser, parsing, PROPERTY_FEATURES, safe, scriptFeatures, silent, stackOverflow, strict, uberspect
-
Fields inherited from class org.apache.commons.jexl3.JexlEngine
CONTEXT, DEFAULT_FEATURES, EMPTY_CONTEXT, EMPTY_NS, ENGINE, TRY_FAILED
-
-
Constructor Summary
Constructors Constructor Description Engine32()
Engine32(JexlBuilder conf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Interpreter
createInterpreter(JexlContext context, Frame frame, JexlOptions opts)
Creates an interpreter.protected Interpreter
createTemplateInterpreter(TemplateInterpreter.Arguments args)
Creates a template interpreter.(package private) static java.lang.Object
getVariable(Interpreter ii, Frame frame, LexicalScope block, ASTIdentifier identifier)
Static delegation of getVariable.(package private) static boolean
isTernaryProtected(Interpreter ii, JexlNode startNode)
Static delegation of isTernaryProtected.-
Methods inherited from class org.apache.commons.jexl3.internal.Engine
clearCache, createExpression, createJxltEngine, createScript, doCreateInstance, evalOptions, evalOptions, getArithmetic, getCharset, getLocalVariables, getNamespace, getParameters, getProperty, getProperty, getUberspect, getUberspect, getUberspect, getVariables, getVariables, invokeMethod, isCancellable, isDebug, isSilent, isStrict, jxlt, newInstance, newInstance, optionsSet, parse, parse, processPragmas, putThreadEngine, putThreadLocal, setClassLoader, setProperty, setProperty, trimSource, varCollector
-
Methods inherited from class org.apache.commons.jexl3.JexlEngine
createExpression, createInfo, createInfo, createJxltEngine, createJxltEngine, createScript, createScript, createScript, createScript, createScript, createScript, createScript, createScript, createScript, getThreadContext, getThreadEngine, readSource, readSource, setThreadContext, toString
-
-
-
-
Constructor Detail
-
Engine32
public Engine32()
-
Engine32
public Engine32(JexlBuilder conf)
-
-
Method Detail
-
getVariable
static java.lang.Object getVariable(Interpreter ii, Frame frame, LexicalScope block, ASTIdentifier identifier)
Static delegation of getVariable.- Parameters:
ii
- the interpreterframe
- the frameblock
- the scopeidentifier
- the variable identifier- Returns:
- the variable value
-
isTernaryProtected
static boolean isTernaryProtected(Interpreter ii, JexlNode startNode)
Static delegation of isTernaryProtected.- Parameters:
ii
- the interpreter (unused)startNode
- the node- Returns:
- true if node is navigation-safe, false otherwise
-
createInterpreter
protected Interpreter createInterpreter(JexlContext context, Frame frame, JexlOptions opts)
Description copied from class:Engine
Creates an interpreter.- Overrides:
createInterpreter
in classEngine
- Parameters:
context
- a JexlContext; if null, the empty context is used instead.frame
- the interpreter frameopts
- the evaluation options- Returns:
- an Interpreter
-
createTemplateInterpreter
protected Interpreter createTemplateInterpreter(TemplateInterpreter.Arguments args)
Description copied from class:Engine
Creates a template interpreter.- Overrides:
createTemplateInterpreter
in classEngine
- Parameters:
args
- the template interpreter arguments
-
-