Package org.openl.rules.cmatch.matcher
Class ClassMinMaxBuilder
- java.lang.Object
-
- org.openl.rules.cmatch.matcher.ClassMinMaxBuilder
-
- All Implemented Interfaces:
IMatcherBuilder
public class ClassMinMaxBuilder 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 ClassMinMaxBuilder(boolean isMaxMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMatchergetInstanceIfSupports(IOpenClass type)Get instance of matcher for a given type.StringgetName()Get name of match operation.
-
-
-
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
-
getName
public String getName()
Description copied from interface:IMatcherBuilderGet name of match operation.- Specified by:
getNamein interfaceIMatcherBuilder- Returns:
- name of operation
-
-