@@ -0,0 +1,3725 @@
+/*%0A * Copyright 2016-2018 shardingsphere.io.%0A * %3Cp%3E%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * %3C/p%3E%0A */%0A%0A%0Apackage io.shardingsphere.core.parsing.antlr.extractor.registry;%0A%0Aimport java.util.Collection;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.fillor.CollectionHandlerResultFillor;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.fillor.ColumnDefinitionHandlerResultFillor;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.fillor.DropColumnHandlerResultFillor;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.fillor.DropPrimaryKeyHandlerResultFillor;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.fillor.HandlerResultFillor;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.fillor.IndexHandlerResultFillor;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.fillor.PrimaryKeyHandlerResultFillor;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.fillor.TableHandlerResultFillor;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.fillor.TableJoinHandlerResultFillor;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.result.ColumnDefinitionExtractResult;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.result.DropColumnExtractResult;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.result.DropPrimaryKeyExtractResult;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.result.IndexExtractResult;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.result.PrimaryKeyExtractResult;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.result.TableExtractResult;%0Aimport io.shardingsphere.core.parsing.antlr.extractor.statement.handler.result.TableJoinExtractResult;%0A%0A/**%0A * Handler result fillor registry.%0A * %0A * @author duhongjun%0A */%0Apublic final class HandlerResultFillorRegistry %7B%0A    private static final Map%3CClass%3C?%3E,HandlerResultFillor%3E fillors = new HashMap%3C%3E();%0A    %0A    static%7B%0A        registry(DropColumnExtractResult.class, new DropColumnHandlerResultFillor());%0A        registry(PrimaryKeyExtractResult.class, new PrimaryKeyHandlerResultFillor());%0A        registry(DropPrimaryKeyExtractResult.class, new DropPrimaryKeyHandlerResultFillor());%0A        registry(TableExtractResult.class, new TableHandlerResultFillor());%0A        registry(ColumnDefinitionExtractResult.class, new ColumnDefinitionHandlerResultFillor());%0A        registry(TableJoinExtractResult.class, new TableJoinHandlerResultFillor());%0A        registry(IndexExtractResult.class, new IndexHandlerResultFillor());%0A        registry(Collection.class, new CollectionHandlerResultFillor());%0A    %7D%0A    %0A    public static void registry(Class%3C?%3E clazz, HandlerResultFillor fillor) %7B%0A        fillors.put(clazz, fillor);%0A    %7D%0A    %0A    public static HandlerResultFillor getFillor(Object object) %7B%0A        if(object instanceof Collection) %7B%0A            return fillors.get(Collection.class); %0A        %7D%0A        return fillors.get(object.getClass());%0A    %7D%0A%7D%0A

add HandlerResultFillorRegistry