Package org.mvel2
Class SandboxedParserConfiguration
java.lang.Object
org.mvel2.ParserConfiguration
org.mvel2.SandboxedParserConfiguration
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class org.mvel2.ParserConfiguration
classLoader, imports, interceptors, nonConvertableMethods, packageImports -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedPackage(String packageName) voidgetMethodInvocationChecker(Method method) getStaticOrClassImport(String name) getValueSizeFunction(Class<?> cls) boolean<T> voidregisterDataType(String name, Class<T> cls, Function<T, Long> valueSizeFunction) voidregisterMethodInvocationChecker(Method method, TriFunction<ExecutionContext, Object, Object[], Object[]> methodInvocationCheckerFunction) Methods inherited from class org.mvel2.ParserConfiguration
addAllImports, addImport, addImport, addImport, addImport, addPackageImport, flushCaches, getClassLoader, getImports, getInterceptors, getPackageImports, getStaticImport, getVariableFactory, hasImports, isAllowBootstrapBypass, isAllowNakedMethCall, isNonConvertableMethod, registerNonConvertableMethods, setAllImports, setAllowBootstrapBypass, setAllowNakedMethCall, setClassLoader, setImports, setImports, setInterceptors, setPackageImports
-
Field Details
-
literals
-
-
Constructor Details
-
SandboxedParserConfiguration
public SandboxedParserConfiguration()
-
-
Method Details
-
hasImport
- Overrides:
hasImportin classParserConfiguration
-
getImport
- Overrides:
getImportin classParserConfiguration
-
addImport
- Overrides:
addImportin classParserConfiguration
-
getStaticOrClassImport
- Overrides:
getStaticOrClassImportin classParserConfiguration
-
addAllowedPackage
-
registerDataType
-
registerMethodInvocationChecker
public void registerMethodInvocationChecker(Method method, TriFunction<ExecutionContext, Object, Object[], Object[]> methodInvocationCheckerFunction) -
getValueSizeFunction
-
getMethodInvocationChecker
public TriFunction<ExecutionContext,Object, getMethodInvocationCheckerObject[], Object[]> (Method method)
-