1/* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.tools.layoutlib.create; 18 19import java.util.Collections; 20import java.util.Map; 21import java.util.Set; 22 23class CreateInfoAdapter implements ICreateInfo { 24 private static final String[] EMPTY_STRING_ARRAY = new String[0]; 25 26 @Override 27 public Class<?>[] getInjectedClasses() { 28 return new Class<?>[0]; 29 } 30 31 @Override 32 public String[] getDelegateMethods() { 33 return EMPTY_STRING_ARRAY; 34 } 35 36 @Override 37 public String[] getDelegateClassNatives() { 38 return EMPTY_STRING_ARRAY; 39 } 40 41 @Override 42 public String[] getRenamedClasses() { 43 return EMPTY_STRING_ARRAY; 44 } 45 46 @Override 47 public String[] getRefactoredClasses() { 48 return EMPTY_STRING_ARRAY; 49 } 50 51 @Override 52 public String[] getDeleteReturns() { 53 return EMPTY_STRING_ARRAY; 54 } 55 56 @Override 57 public String[] getJavaPkgClasses() { 58 return EMPTY_STRING_ARRAY; 59 } 60 61 @Override 62 public Set<String> getExcludedClasses() { 63 return Collections.emptySet(); 64 } 65 66 @Override 67 public String[] getPromotedFields() { 68 return EMPTY_STRING_ARRAY; 69 } 70 71 @Override 72 public String[] getPromotedClasses() { 73 return EMPTY_STRING_ARRAY; 74 } 75 76 @Override 77 public Map<String, InjectMethodRunnable> getInjectedMethodsMap() { 78 return Collections.emptyMap(); 79 } 80} 81