Java: Added CompiledExpression sink for MVEL injections

This commit is contained in:
Artem Smotrakov
2020-04-24 22:06:20 +02:00
parent c6c4c2c99b
commit 32ff5ad496
6 changed files with 57 additions and 14 deletions

View File

@@ -0,0 +1,8 @@
package org.mvel2.compiler;
import org.mvel2.integration.VariableResolverFactory;
public class CompiledExpression implements ExecutableStatement {
public Object getDirectValue(Object staticContext, VariableResolverFactory factory) { return null; }
public Object getValue(Object staticContext, VariableResolverFactory factory) { return null; }
}

View File

@@ -3,5 +3,5 @@ package org.mvel2.compiler;
import org.mvel2.integration.VariableResolverFactory;
public interface ExecutableStatement {
public Object getValue(Object staticContext, VariableResolverFactory factory);
public Object getValue(Object staticContext, VariableResolverFactory factory);
}

View File

@@ -2,5 +2,5 @@ package org.mvel2.compiler;
public class ExpressionCompiler {
public ExpressionCompiler(String expression) {}
public ExecutableStatement compile() { return null; }
public CompiledExpression compile() { return null; }
}