Class MatchingOpenMethodDispatcherWrapper
- java.lang.Object
-
- org.openl.rules.types.OpenMethodDispatcher
-
- org.openl.rules.types.impl.MatchingOpenMethodDispatcher
-
- org.openl.rules.lang.xls.binding.wrapper.base.AbstractMatchingOpenMethodDispatcherWrapper
-
- org.openl.rules.lang.xls.binding.wrapper.MatchingOpenMethodDispatcherWrapper
-
- All Implemented Interfaces:
INamedThing,IOpenMethodWrapper,IRulesMethodWrapper,IMethodCaller,Invokable,IOpenMember,IOpenMethod,IOpenMethodHeader
public final class MatchingOpenMethodDispatcherWrapper extends AbstractMatchingOpenMethodDispatcherWrapper implements IRulesMethodWrapper
-
-
Field Summary
-
Fields inherited from class org.openl.rules.lang.xls.binding.wrapper.base.AbstractMatchingOpenMethodDispatcherWrapper
delegate
-
Fields inherited from interface org.openl.base.INamedThing
EMPTY, LONG, REGULAR, SHORT
-
Fields inherited from interface org.openl.types.IOpenMethod
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description MatchingOpenMethodDispatcherWrapper(XlsModuleOpenClass xlsModuleOpenClass, MatchingOpenMethodDispatcher delegate, org.openl.rules.lang.xls.binding.wrapper.ContextPropertiesInjector contextPropertiesInjector, boolean externalMethodCall)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMethod(IOpenMethod candidate)Try to add method as overloaded version of decorated method.booleanequals(Object o)org.openl.rules.lang.xls.binding.wrapper.ContextPropertiesInjectorgetContextPropertiesInjector()IOpenMethodgetDelegate()IMethodSignaturegetSignature()Gets the signature of method.IOpenMethodgetTopOpenClassMethod(IOpenClass openClass)IOpenClassgetType()Gets the type of method.XlsModuleOpenClassgetXlsModuleOpenClass()inthashCode()Objectinvoke(Object target, Object[] params, IRuntimeEnv env)Invokes appropriate method using runtime context.-
Methods inherited from class org.openl.rules.lang.xls.binding.wrapper.base.AbstractMatchingOpenMethodDispatcherWrapper
findMatchingMethod, getCandidates, getDecisionTableOpenMethod, getDeclaringClass, getDispatcherTable, getDisplayName, getInfo, getMethod, getName, getTargetMethod, isConstructor, isStatic, setDecisionTableOpenMethod
-
Methods inherited from class org.openl.rules.types.impl.MatchingOpenMethodDispatcher
findMatchingMethod
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openl.rules.lang.xls.binding.wrapper.IRulesMethodWrapper
invokeDelegateWithContextPropertiesInjector
-
-
-
-
Constructor Detail
-
MatchingOpenMethodDispatcherWrapper
public MatchingOpenMethodDispatcherWrapper(XlsModuleOpenClass xlsModuleOpenClass, MatchingOpenMethodDispatcher delegate, org.openl.rules.lang.xls.binding.wrapper.ContextPropertiesInjector contextPropertiesInjector, boolean externalMethodCall)
-
-
Method Detail
-
getDelegate
public IOpenMethod getDelegate()
- Specified by:
getDelegatein interfaceIOpenMethodWrapper
-
invoke
public Object invoke(Object target, Object[] params, IRuntimeEnv env)
Description copied from class:OpenMethodDispatcherInvokes appropriate method using runtime context.- Specified by:
invokein interfaceInvokable- Overrides:
invokein classAbstractMatchingOpenMethodDispatcherWrapper
-
addMethod
public void addMethod(IOpenMethod candidate)
Description copied from class:OpenMethodDispatcherTry to add method as overloaded version of decorated method.- Overrides:
addMethodin classAbstractMatchingOpenMethodDispatcherWrapper- Parameters:
candidate- method to add
-
getXlsModuleOpenClass
public XlsModuleOpenClass getXlsModuleOpenClass()
- Specified by:
getXlsModuleOpenClassin interfaceIRulesMethodWrapper
-
getSignature
public IMethodSignature getSignature()
Description copied from class:OpenMethodDispatcherGets the signature of method.- Specified by:
getSignaturein interfaceIOpenMethodHeader- Overrides:
getSignaturein classAbstractMatchingOpenMethodDispatcherWrapper
-
getType
public IOpenClass getType()
Description copied from class:OpenMethodDispatcherGets the type of method.- Specified by:
getTypein interfaceIOpenMember- Specified by:
getTypein interfaceIRulesMethodWrapper- Overrides:
getTypein classAbstractMatchingOpenMethodDispatcherWrapper
-
getTopOpenClassMethod
public IOpenMethod getTopOpenClassMethod(IOpenClass openClass)
- Specified by:
getTopOpenClassMethodin interfaceIRulesMethodWrapper
-
getContextPropertiesInjector
public org.openl.rules.lang.xls.binding.wrapper.ContextPropertiesInjector getContextPropertiesInjector()
- Specified by:
getContextPropertiesInjectorin interfaceIRulesMethodWrapper
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractMatchingOpenMethodDispatcherWrapper
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractMatchingOpenMethodDispatcherWrapper
-
-