Class AbstractMatchingOpenMethodDispatcherWrapper
- java.lang.Object
-
- org.openl.rules.types.OpenMethodDispatcher
-
- org.openl.rules.types.impl.MatchingOpenMethodDispatcher
-
- org.openl.rules.lang.xls.binding.wrapper.base.AbstractMatchingOpenMethodDispatcherWrapper
-
- All Implemented Interfaces:
INamedThing,IMethodCaller,Invokable,IOpenMember,IOpenMethod,IOpenMethodHeader
- Direct Known Subclasses:
MatchingOpenMethodDispatcherWrapper
public abstract class AbstractMatchingOpenMethodDispatcherWrapper extends MatchingOpenMethodDispatcher
-
-
Field Summary
Fields Modifier and Type Field Description protected MatchingOpenMethodDispatcherdelegate-
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 AbstractMatchingOpenMethodDispatcherWrapper(MatchingOpenMethodDispatcher delegate)
-
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)IOpenMethodfindMatchingMethod(IRuntimeEnv env)Finds appropriate method using runtime context.List<IOpenMethod>getCandidates()IOpenMethodgetDecisionTableOpenMethod()XlsModuleOpenClassgetDeclaringClass()Gets the declaring class.TableSyntaxNodegetDispatcherTable()StringgetDisplayName(int mode)Gets the user-friendly name.IMemberMetaInfogetInfo()Getsnull.IOpenMethodgetMethod()Getsthis.StringgetName()Gets the method name.IMethodSignaturegetSignature()Gets the signature of method.IOpenMethodgetTargetMethod()IOpenClassgetType()Gets the type of method.inthashCode()Objectinvoke(Object target, Object[] params, IRuntimeEnv env)Invokes appropriate method using runtime context.booleanisConstructor()booleanisStatic()voidsetDecisionTableOpenMethod(IOpenMethod decisionTableOpenMethod)-
Methods inherited from class org.openl.rules.types.impl.MatchingOpenMethodDispatcher
findMatchingMethod
-
-
-
-
Field Detail
-
delegate
protected final MatchingOpenMethodDispatcher delegate
-
-
Constructor Detail
-
AbstractMatchingOpenMethodDispatcherWrapper
public AbstractMatchingOpenMethodDispatcherWrapper(MatchingOpenMethodDispatcher delegate)
-
-
Method Detail
-
getDecisionTableOpenMethod
public IOpenMethod getDecisionTableOpenMethod()
- Overrides:
getDecisionTableOpenMethodin classMatchingOpenMethodDispatcher
-
setDecisionTableOpenMethod
public void setDecisionTableOpenMethod(IOpenMethod decisionTableOpenMethod)
- Overrides:
setDecisionTableOpenMethodin classMatchingOpenMethodDispatcher
-
getDeclaringClass
public XlsModuleOpenClass getDeclaringClass()
Description copied from class:OpenMethodDispatcherGets the declaring class.- Specified by:
getDeclaringClassin interfaceIOpenMember- Overrides:
getDeclaringClassin classOpenMethodDispatcher
-
addMethod
public void addMethod(IOpenMethod candidate)
Description copied from class:OpenMethodDispatcherTry to add method as overloaded version of decorated method.- Overrides:
addMethodin classMatchingOpenMethodDispatcher- Parameters:
candidate- method to add
-
getDispatcherTable
public TableSyntaxNode getDispatcherTable()
- Overrides:
getDispatcherTablein classMatchingOpenMethodDispatcher
-
getInfo
public IMemberMetaInfo getInfo()
Description copied from class:OpenMethodDispatcherGetsnull. The decorator hasn't info about overloaded methods.- Specified by:
getInfoin interfaceIOpenMember- Overrides:
getInfoin classMatchingOpenMethodDispatcher
-
getCandidates
public List<IOpenMethod> getCandidates()
- Overrides:
getCandidatesin classMatchingOpenMethodDispatcher
-
getSignature
public IMethodSignature getSignature()
Description copied from class:OpenMethodDispatcherGets the signature of method.- Specified by:
getSignaturein interfaceIOpenMethodHeader- Overrides:
getSignaturein classOpenMethodDispatcher
-
getType
public IOpenClass getType()
Description copied from class:OpenMethodDispatcherGets the type of method.- Specified by:
getTypein interfaceIOpenMember- Overrides:
getTypein classOpenMethodDispatcher
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin interfaceIOpenMember- Overrides:
isStaticin classOpenMethodDispatcher
-
isConstructor
public boolean isConstructor()
- Specified by:
isConstructorin interfaceIOpenMethod- Overrides:
isConstructorin classOpenMethodDispatcher
-
getDisplayName
public String getDisplayName(int mode)
Description copied from class:OpenMethodDispatcherGets the user-friendly name.- Specified by:
getDisplayNamein interfaceINamedThing- Overrides:
getDisplayNamein classOpenMethodDispatcher
-
getName
public String getName()
Description copied from class:OpenMethodDispatcherGets the method name.- Specified by:
getNamein interfaceINamedThing- Overrides:
getNamein classOpenMethodDispatcher
-
getMethod
public IOpenMethod getMethod()
Description copied from class:OpenMethodDispatcherGetsthis. The decorator cannot resolve which overloaded method should be returned.- Specified by:
getMethodin interfaceIMethodCaller- Overrides:
getMethodin classOpenMethodDispatcher
-
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 classOpenMethodDispatcher
-
findMatchingMethod
public IOpenMethod findMatchingMethod(IRuntimeEnv env)
Description copied from class:OpenMethodDispatcherFinds appropriate method using runtime context. This method used to optimize runtime where the same method is used more that one time.- Overrides:
findMatchingMethodin classOpenMethodDispatcher
-
getTargetMethod
public IOpenMethod getTargetMethod()
- Overrides:
getTargetMethodin classOpenMethodDispatcher
-
-