Package org.mvel2
Class ExecutionContext
- java.lang.Object
-
- org.mvel2.ExecutionContext
-
- All Implemented Interfaces:
Serializable
public class ExecutionContext extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext(SandboxedParserConfiguration parserConfig)ExecutionContext(SandboxedParserConfiguration parserConfig, long maxAllowedMemory)ExecutionContext(SandboxedParserConfiguration parserConfig, long maxAllowedMemory, int maxAllowedMethodArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckArray(Class<?> componentType, int... dimensions)ObjectcheckAssignGlobalVariable(String varName, Object value)ObjectcheckAssignLocalVariable(String varName, Object value)voidcheckExecution()Object[]checkInvocation(Method method, Object ctx, Object[] args)voiddumpValueReferences()voiddumpVars()voidenterStack()longgetMaxAllowedMemory()longgetMemorySize()voidleaveStack()intnextId()longonValAdd(ExecutionObject obj, Object key, Object val)longonValRemove(ExecutionObject obj, Object key, Object val)voidstop()
-
-
-
Constructor Detail
-
ExecutionContext
public ExecutionContext(SandboxedParserConfiguration parserConfig)
-
ExecutionContext
public ExecutionContext(SandboxedParserConfiguration parserConfig, long maxAllowedMemory)
-
ExecutionContext
public ExecutionContext(SandboxedParserConfiguration parserConfig, long maxAllowedMemory, int maxAllowedMethodArgs)
-
-
Method Detail
-
nextId
public int nextId()
-
checkExecution
public void checkExecution()
-
stop
public void stop()
-
enterStack
public void enterStack()
-
leaveStack
public void leaveStack()
-
checkArray
public void checkArray(Class<?> componentType, int... dimensions)
-
onValRemove
public long onValRemove(ExecutionObject obj, Object key, Object val)
-
onValAdd
public long onValAdd(ExecutionObject obj, Object key, Object val)
-
dumpVars
public void dumpVars()
-
dumpValueReferences
public void dumpValueReferences()
-
getMemorySize
public long getMemorySize()
-
getMaxAllowedMemory
public long getMaxAllowedMemory()
-
-