org.drools.base.mvel
Class MVELCompilationUnit
java.lang.Object
org.drools.base.mvel.MVELCompilationUnit
- All Implemented Interfaces:
- Externalizable, Serializable, Cloneable
public class MVELCompilationUnit
- extends Object
- implements Externalizable, Cloneable
- See Also:
- Serialized Form
Constructor Summary |
MVELCompilationUnit()
|
MVELCompilationUnit(String name,
String expression,
String[] globalIdentifiers,
EvaluatorWrapper[] operators,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
String[] otherIdentifiers,
String[] inputIdentifiers,
String[] inputTypes,
int languageLevel,
boolean strictMode)
|
Method Summary |
MVELCompilationUnit |
clone()
|
static Serializable |
compile(String text,
ClassLoader classLoader,
org.mvel2.ParserContext parserContext,
int languageLevel)
|
org.mvel2.integration.VariableResolverFactory |
createFactory()
|
Serializable |
getCompiledExpression(MVELDialectRuntimeData runtimeData)
|
static Object |
getCompilerLock()
|
String |
getExpression()
|
org.mvel2.integration.VariableResolverFactory |
getFactory(Object knowledgeHelper,
org.drools.definition.rule.Rule rule,
Object rightObject,
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,
org.drools.definition.rule.Rule rule,
Object rightObject,
LeftTuple tuples,
Object[] otherVars,
InternalWorkingMemory workingMemory,
GlobalResolver globals,
org.mvel2.integration.VariableResolverFactory factory)
|
void |
writeExternal(ObjectOutput out)
|
COMPILER_LOCK
public static final Object COMPILER_LOCK
MVELCompilationUnit
public MVELCompilationUnit()
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)
getExpression
public String getExpression()
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
getCompiledExpression
public Serializable getCompiledExpression(MVELDialectRuntimeData runtimeData)
createFactory
public org.mvel2.integration.VariableResolverFactory createFactory()
getFactory
public org.mvel2.integration.VariableResolverFactory getFactory(Object knowledgeHelper,
org.drools.definition.rule.Rule rule,
Object rightObject,
LeftTuple tuples,
Object[] otherVars,
InternalWorkingMemory workingMemory,
GlobalResolver globals)
updateFactory
public void updateFactory(Object knowledgeHelper,
org.drools.definition.rule.Rule rule,
Object rightObject,
LeftTuple tuples,
Object[] otherVars,
InternalWorkingMemory workingMemory,
GlobalResolver globals,
org.mvel2.integration.VariableResolverFactory factory)
compile
public static Serializable compile(String text,
ClassLoader classLoader,
org.mvel2.ParserContext parserContext,
int languageLevel)
loadClass
public static Class loadClass(ClassLoader classLoader,
String className)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
replaceDeclaration
public void replaceDeclaration(Declaration declaration,
Declaration resolved)
clone
public MVELCompilationUnit clone()
- Overrides:
clone
in class Object
getSerialversionuid
public static long getSerialversionuid()
getName
public String getName()
getGlobalIdentifiers
public String[] getGlobalIdentifiers()
getPreviousDeclarations
public Declaration[] getPreviousDeclarations()
setPreviousDeclarations
public void setPreviousDeclarations(Declaration[] previousDeclarations)
getLocalDeclarations
public Declaration[] getLocalDeclarations()
getOtherIdentifiers
public String[] getOtherIdentifiers()
getInputIdentifiers
public String[] getInputIdentifiers()
getInputTypes
public String[] getInputTypes()
getLanguageLevel
public int getLanguageLevel()
isStrictMode
public boolean isStrictMode()
getInterceptors
public static Map getInterceptors()
getPrimitivesmap
public static Map<String,Class<?>> getPrimitivesmap()
getCompilerLock
public static Object getCompilerLock()
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.