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(SandboxedParserConfiguration sandboxedParserConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetLiteral(String property)booleanhasLiteral(String property)booleanisMethodAllowed(Method method)voidsetLiterals(Map<String,Object> literals)-
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, getParserConfiguration, getProtoImport, getReturnTypeCache, getRootParser, getSourceFile, getStaticImport, getStaticOrClassImport, getTypeParameters, getTypeParametersAsArray, getVariables, getVariableScope, getVarOrInputType, getVarOrInputTypeOrNull, hasFunction, hasFunction, hasImport, hasImports, hasIndexedInputs, 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, setRetainParserState, setRootParser, setSourceFile, setStrictTypeEnforcement, setStrongTyping, setVariables, stronglyTyped, variableIndexOf, visitLine, withImport, withIndexedVars, withInput, withInputs, withTypeParameters
-
-
-
-
Constructor Detail
-
SandboxedParserContext
public SandboxedParserContext(SandboxedParserConfiguration sandboxedParserConfiguration)
-
-
Method Detail
-
hasLiteral
public boolean hasLiteral(String property)
- Overrides:
hasLiteralin classParserContext
-
getLiteral
public Object getLiteral(String property)
- Overrides:
getLiteralin classParserContext
-
setLiterals
public void setLiterals(Map<String,Object> literals)
- Overrides:
setLiteralsin classParserContext
-
isMethodAllowed
public boolean isMethodAllowed(Method method)
- Overrides:
isMethodAllowedin classParserContext
-
-