Class ClassMatchBuilder

    • Constructor Detail

      • ClassMatchBuilder

        public ClassMatchBuilder()
    • Method Detail

      • getInstanceIfSupports

        public IMatcher getInstanceIfSupports​(IOpenClass type)
        Description copied from interface: IMatcherBuilder
        Get 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:
        getInstanceIfSupports in interface IMatcherBuilder
        Parameters:
        type - variable's class
        Returns:
        null if type is not supported; or instance of a matcher