Package org.openl.rules.cmatch.matcher
Class AMatcherMapBuilder<M extends IMatcher>
- java.lang.Object
-
- org.openl.rules.cmatch.matcher.AMatcherMapBuilder<M>
-
- All Implemented Interfaces:
IMatcherBuilder
- Direct Known Subclasses:
NumberMatchBuilder
public abstract class AMatcherMapBuilder<M extends IMatcher> extends Object implements IMatcherBuilder
-
-
Field Summary
-
Fields inherited from interface org.openl.rules.cmatch.matcher.IMatcherBuilder
OP_MATCH, OP_MAX, OP_MIN
-
-
Constructor Summary
Constructors Constructor Description AMatcherMapBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMatchergetInstanceIfSupports(IOpenClass type)Get instance of matcher for a given type.protected voidput(Class<?> clazz, M matcher)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openl.rules.cmatch.matcher.IMatcherBuilder
getName
-
-
-
-
Method Detail
-
getInstanceIfSupports
public IMatcher getInstanceIfSupports(IOpenClass type)
Description copied from interface:IMatcherBuilderGet instance of matcher for a given type.It can create new instance of the matcher each time or return *itself* if one matcher is enough. It is useful for enums and e.t.c
- Specified by:
getInstanceIfSupportsin interfaceIMatcherBuilder- Parameters:
type- variable's class- Returns:
- null if type is not supported; or instance of a matcher
-
-