public class MVELCompilationUnit extends Object implements Externalizable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
MVELCompilationUnit.DroolsVarFactory |
static class |
MVELCompilationUnit.PropertyHandlerFactoryFixer |
Modifier and Type | Field and Description |
---|---|
static Object |
COMPILER_LOCK |
static Map<String,org.mvel2.integration.Interceptor> |
INTERCEPTORS |
Constructor and Description |
---|
MVELCompilationUnit() |
MVELCompilationUnit(String name,
String expression,
String[] globalIdentifiers,
EvaluatorWrapper[] operators,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
String[] otherIdentifiers,
String[] inputIdentifiers,
String[] inputTypes,
int languageLevel,
boolean strictMode,
boolean readLocalsFromTuple) |
Modifier and Type | Method and Description |
---|---|
MVELCompilationUnit |
clone() |
static Serializable |
compile(String text,
ClassLoader classLoader,
org.mvel2.ParserContext parserContext,
int languageLevel) |
org.mvel2.integration.VariableResolverFactory |
createFactory() |
Serializable |
getCompiledExpression(MVELDialectRuntimeData runtimeData) |
Serializable |
getCompiledExpression(MVELDialectRuntimeData runtimeData,
Object evaluationContext) |
static Object |
getCompilerLock() |
String |
getExpression() |
static InternalFactHandle |
getFactHandle(Declaration declaration,
InternalFactHandle[] handles) |
org.mvel2.integration.VariableResolverFactory |
getFactory(Object knowledgeHelper,
Declaration[] prevDecl,
org.kie.api.definition.rule.Rule rule,
InternalFactHandle rightHandle,
LeftTuple tuples,
Object[] otherVars,
InternalWorkingMemory workingMemory,
GlobalResolver globals) |
org.mvel2.integration.VariableResolverFactory |
getFactory(Object knowledgeHelper,
Declaration[] prevDecl,
org.kie.api.definition.rule.Rule rule,
LeftTuple tuples,
Object[] otherVars,
InternalWorkingMemory workingMemory,
GlobalResolver globals) |
String[] |
getGlobalIdentifiers() |
String[] |
getInputIdentifiers() |
String[] |
getInputTypes() |
static Map |
getInterceptors() |
int |
getLanguageLevel() |
Declaration[] |
getLocalDeclarations() |
String |
getName() |
String[] |
getOtherIdentifiers() |
Declaration[] |
getPreviousDeclarations() |
static Map<String,Class<?>> |
getPrimitivesmap() |
static long |
getSerialversionuid() |
boolean |
isStrictMode() |
static Class |
loadClass(ClassLoader classLoader,
String className) |
void |
readExternal(ObjectInput in) |
void |
replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
setPreviousDeclarations(Declaration[] previousDeclarations) |
void |
updateFactory(Object knowledgeHelper,
Declaration[] prevDecl,
org.kie.api.definition.rule.Rule rule,
InternalFactHandle rightHandle,
Object rightObject,
LeftTuple tuples,
Object[] otherVars,
InternalWorkingMemory workingMemory,
GlobalResolver globals,
org.mvel2.integration.VariableResolverFactory factory) |
void |
updateFactory(Object knowledgeHelper,
org.kie.api.definition.rule.Rule rule,
InternalFactHandle rightHandle,
LeftTuple leftTuple,
Object[] localVars,
InternalWorkingMemory workingMemory,
GlobalResolver globalResolver,
org.mvel2.integration.VariableResolverFactory factory) |
void |
writeExternal(ObjectOutput out) |
public static final Object COMPILER_LOCK
public MVELCompilationUnit()
public MVELCompilationUnit(String name, String expression, String[] globalIdentifiers, EvaluatorWrapper[] operators, Declaration[] previousDeclarations, Declaration[] localDeclarations, String[] otherIdentifiers, String[] inputIdentifiers, String[] inputTypes, int languageLevel, boolean strictMode, boolean readLocalsFromTuple)
public String getExpression()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public Serializable getCompiledExpression(MVELDialectRuntimeData runtimeData)
public Serializable getCompiledExpression(MVELDialectRuntimeData runtimeData, Object evaluationContext)
public org.mvel2.integration.VariableResolverFactory createFactory()
public org.mvel2.integration.VariableResolverFactory getFactory(Object knowledgeHelper, Declaration[] prevDecl, org.kie.api.definition.rule.Rule rule, LeftTuple tuples, Object[] otherVars, InternalWorkingMemory workingMemory, GlobalResolver globals)
public org.mvel2.integration.VariableResolverFactory getFactory(Object knowledgeHelper, Declaration[] prevDecl, org.kie.api.definition.rule.Rule rule, InternalFactHandle rightHandle, LeftTuple tuples, Object[] otherVars, InternalWorkingMemory workingMemory, GlobalResolver globals)
public void updateFactory(Object knowledgeHelper, org.kie.api.definition.rule.Rule rule, InternalFactHandle rightHandle, LeftTuple leftTuple, Object[] localVars, InternalWorkingMemory workingMemory, GlobalResolver globalResolver, org.mvel2.integration.VariableResolverFactory factory)
public void updateFactory(Object knowledgeHelper, Declaration[] prevDecl, org.kie.api.definition.rule.Rule rule, InternalFactHandle rightHandle, Object rightObject, LeftTuple tuples, Object[] otherVars, InternalWorkingMemory workingMemory, GlobalResolver globals, org.mvel2.integration.VariableResolverFactory factory)
public static InternalFactHandle getFactHandle(Declaration declaration, InternalFactHandle[] handles)
public static Serializable compile(String text, ClassLoader classLoader, org.mvel2.ParserContext parserContext, int languageLevel)
public static Class loadClass(ClassLoader classLoader, String className) throws ClassNotFoundException
ClassNotFoundException
public void replaceDeclaration(Declaration declaration, Declaration resolved)
public MVELCompilationUnit clone()
public static long getSerialversionuid()
public String getName()
public String[] getGlobalIdentifiers()
public Declaration[] getPreviousDeclarations()
public void setPreviousDeclarations(Declaration[] previousDeclarations)
public Declaration[] getLocalDeclarations()
public String[] getOtherIdentifiers()
public String[] getInputIdentifiers()
public String[] getInputTypes()
public int getLanguageLevel()
public boolean isStrictMode()
public static Map getInterceptors()
public static Object getCompilerLock()
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.