Package org.openl.rules.binding
Class RulesModuleBindingContext
- java.lang.Object
-
- org.openl.binding.impl.BindingContextDelegator
-
- org.openl.binding.impl.component.ComponentBindingContext
-
- org.openl.binding.impl.module.ModuleBindingContext
-
- org.openl.rules.binding.RulesModuleBindingContext
-
- All Implemented Interfaces:
IBindingContext,IBindingContextDelegator,ICastFactory
public class RulesModuleBindingContext extends ModuleBindingContext
Binding context for xls rules.- Author:
- DLiauchuk
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRulesModuleBindingContext.CurrentRuntimeContextMethodstatic classRulesModuleBindingContext.DispatchingTablePropertiesOpenFieldstatic classRulesModuleBindingContext.EmptyRuntimeContextMethodstatic classRulesModuleBindingContext.ModifyRuntimeContextMethodstatic classRulesModuleBindingContext.RestoreRuntimeContextMethodstatic classRulesModuleBindingContext.SetRuntimeContextMethodstatic classRulesModuleBindingContext.TablePropertiesOpenField
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORY_PROPERTIES_KEYstatic StringGLOBAL_PROPERTIES_KEYstatic StringMODULE_PROPERTIES_KEY-
Fields inherited from class org.openl.binding.impl.BindingContextDelegator
delegate
-
-
Constructor Summary
Constructors Constructor Description RulesModuleBindingContext(IBindingContext delegate, XlsModuleOpenClass module)
-
Method Summary
-
Methods inherited from class org.openl.binding.impl.component.ComponentBindingContext
addVar, findOpenClass, getComponentOpenClass
-
Methods inherited from class org.openl.binding.impl.BindingContextDelegator
addError, addMessage, addMessages, findBinder, findClosestClass, findParentClass, findRange, getCast, getDelegate, getErrors, getExternalParams, getLocalVarFrameSize, getMessages, getOpenL, getReturnType, isExecutionMode, popErrors, popLocalVarContext, popMessages, pushErrors, pushLocalVarContext, pushMessages, setDelegate, setExecutionMode, setExternalParams, setReturnType, setTopDelegate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openl.binding.IBindingContext
getTemporaryVarName
-
-
-
-
Field Detail
-
GLOBAL_PROPERTIES_KEY
public static final String GLOBAL_PROPERTIES_KEY
- See Also:
- Constant Field Values
-
MODULE_PROPERTIES_KEY
public static final String MODULE_PROPERTIES_KEY
- See Also:
- Constant Field Values
-
CATEGORY_PROPERTIES_KEY
public static final String CATEGORY_PROPERTIES_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RulesModuleBindingContext
public RulesModuleBindingContext(IBindingContext delegate, XlsModuleOpenClass module)
-
-
Method Detail
-
registerTableSyntaxNode
public void registerTableSyntaxNode(String key, TableSyntaxNode tsn)
Registers the tsn by specified key.- Parameters:
key- Key that have to be same for equivalent tables.tsn- TableSyntaxNode to register.
-
isTableSyntaxNodePresented
public boolean isTableSyntaxNodePresented(String key)
- Returns:
trueif key TableSyntaxNode with specified key has already been registered.
-
getTableSyntaxNode
public TableSyntaxNode getTableSyntaxNode(String key)
-
findVar
public IOpenField findVar(String namespace, String name, boolean strictMatch) throws AmbiguousFieldException
- Specified by:
findVarin interfaceIBindingContext- Overrides:
findVarin classComponentBindingContext- Throws:
AmbiguousFieldException
-
findMethodCaller
public IMethodCaller findMethodCaller(String namespace, String methodName, IOpenClass[] parTypes)
- Specified by:
findMethodCallerin interfaceIBindingContext- Overrides:
findMethodCallerin classComponentBindingContext
-
getModule
public XlsModuleOpenClass getModule()
- Overrides:
getModulein classModuleBindingContext
-
addType
public IOpenClass addType(String namespace, IOpenClass type) throws DuplicatedTypeException
- Specified by:
addTypein interfaceIBindingContext- Overrides:
addTypein classComponentBindingContext- Throws:
DuplicatedTypeException
-
findType
public IOpenClass findType(String namespace, String typeName)
- Specified by:
findTypein interfaceIBindingContext- Overrides:
findTypein classComponentBindingContext
-
combineTypes
public IOpenClass combineTypes(IOpenClass... openClasses) throws TypesCombinationNotSupportedException
- Specified by:
combineTypesin interfaceIBindingContext- Overrides:
combineTypesin classBindingContextDelegator- Throws:
TypesCombinationNotSupportedException
-
addBinderMethod
public void addBinderMethod(OpenMethodHeader openMethodHeader, RecursiveOpenMethodPreBinder method)
-
preBindMethod
public void preBindMethod(OpenMethodHeader openMethodHeader)
-
setIgnoreCustomSpreadsheetResultCompilation
public void setIgnoreCustomSpreadsheetResultCompilation(boolean ignoreCustomSpreadsheetResultCompilation)
-
isComponentSpecificOpenClass
protected boolean isComponentSpecificOpenClass(IOpenClass componentOpenClass)
- Overrides:
isComponentSpecificOpenClassin classComponentBindingContext
-
isComponentSpecificOpenClass
public static boolean isComponentSpecificOpenClass(IBindingContext bindingContext, IOpenClass componentOpenClass, XlsModuleOpenClass xlsModuleOpenClass, IdentityHashMap<ModuleOpenClass,IdentityHashMap<ModuleOpenClass,Boolean>> cache)
-
-