1 /* 2 * Copyright (C) 2010 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 17 package com.android.tools.layoutlib.create; 18 19 /** 20 * Interface describing the work to be done by {@link AsmGenerator}. 21 */ 22 public interface ICreateInfo { 23 24 /** 25 * Returns the list of class from layoutlib_create to inject in layoutlib. 26 * The list can be empty but must not be null. 27 */ 28 public abstract Class<?>[] getInjectedClasses(); 29 30 /** 31 * Returns the list of methods to rewrite as delegates. 32 * The list can be empty but must not be null. 33 */ 34 public abstract String[] getDelegateMethods(); 35 36 /** 37 * Returns the list of classes on which to delegate all native methods. 38 * The list can be empty but must not be null. 39 */ 40 public abstract String[] getDelegateClassNatives(); 41 42 /** 43 * Returns The list of methods to stub out. Each entry must be in the form 44 * "package.package.OuterClass$InnerClass#MethodName". 45 * The list can be empty but must not be null. 46 */ 47 public abstract String[] getOverriddenMethods(); 48 49 /** 50 * Returns the list of classes to rename, must be an even list: the binary FQCN 51 * of class to replace followed by the new FQCN. 52 * The list can be empty but must not be null. 53 */ 54 public abstract String[] getRenamedClasses(); 55 56 /** 57 * Returns the list of classes for which the methods returning them should be deleted. 58 * The array contains a list of null terminated section starting with the name of the class 59 * to rename in which the methods are deleted, followed by a list of return types identifying 60 * the methods to delete. 61 * The list can be empty but must not be null. 62 */ 63 public abstract String[] getDeleteReturns(); 64 65 } 66