Package org.mvel2
Class SandboxedParserContext
- java.lang.Object
-
- org.mvel2.ParserContext
-
- org.mvel2.SandboxedParserContext
-
- All Implemented Interfaces:
Serializable
public class SandboxedParserContext extends ParserContext
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.mvel2.ParserContext
variablesEscape
-
-
Constructor Summary
Constructors Constructor Description SandboxedParserContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllowedPackage(String packageName)booleanisMethodAllowed(Method method)-
Methods inherited from class org.mvel2.ParserContext
addError, addImport, addImport, addImport, addImport, addImport, addIndexedInput, addIndexedInput, addIndexedInputs, addIndexedLocals, addIndexedLocals, addInput, addInput, addInputs, addPackageImport, addTypeParameters, addVariable, addVariable, addVariables, create, createColoringSubcontext, createSubcontext, declareFunction, getClassLoader, getCompiledExpressionCache, getErrorList, getEvaluationContext, getFunction, getFunctions, getImport, getImports, getIndexedInputs, getIndexedVarNames, getInputs, getInterceptors, getLastLineLabel, getLastTypeParameters, getLineCount, getLineFor, getLineOffset, getLiteral, getParserConfiguration, getProtoImport, getReturnTypeCache, getRootParser, getSourceFile, getStaticImport, getStaticOrClassImport, getTypeParameters, getTypeParametersAsArray, getVariables, getVariableScope, getVarOrInputType, getVarOrInputTypeOrNull, hasFunction, hasFunction, hasImport, hasImports, hasIndexedInputs, hasLiteral, hasProtoImport, hasVarOrInput, incrementLineCount, initializeTables, initLineMapping, isAllowBootstrapBypass, isBlockSymbols, isCompiled, isDebugSymbols, isExecutableCodeReached, isFatalError, isFunctionContext, isIndexAllocation, isLineMapped, isOptimizerNotified, isRetainParserState, isStrictTypeEnforcement, isStrongTyping, isVariablesEscape, isVariableVisible, isVisitedLine, makeVisible, optimizationNotify, popVariableScope, processTables, pushVariableScope, setAllowBootstrapBypass, setBlockSymbols, setCompiled, setDebugSymbols, setErrorList, setExecutableCodeReached, setFatalError, setImports, setIndexAllocation, setInputs, setInterceptors, setLastLineLabel, setLastTypeParameters, setLineAndOffset, setLineCount, setLineOffset, setLiterals, setRetainParserState, setRootParser, setSourceFile, setStrictTypeEnforcement, setStrongTyping, setVariables, stronglyTyped, variableIndexOf, visitLine, withImport, withIndexedVars, withInput, withInputs, withTypeParameters
-
-
-
-
Method Detail
-
addAllowedPackage
public void addAllowedPackage(String packageName)
-
isMethodAllowed
public boolean isMethodAllowed(Method method)
- Overrides:
isMethodAllowedin classParserContext
-
-