FileDocCategorySizeDatePackage
CreateInfo.javaAPI DocAndroid 5.1 API12081Thu Mar 12 22:22:44 GMT 2015com.android.tools.layoutlib.create

CreateInfo

public final class CreateInfo extends Object implements ICreateInfo
Describes the work to be done by {@link AsmGenerator}.

Fields Summary
private static final Class[]
INJECTED_CLASSES
The list of class from layoutlib_create to inject in layoutlib.
public static final String[]
DELEGATE_METHODS
The list of methods to rewrite as delegates.
public static final String[]
DELEGATE_CLASS_NATIVES
The list of classes on which to delegate all native methods.
private static final String[]
OVERRIDDEN_METHODS
The list of methods to stub out. Each entry must be in the form "package.package.OuterClass$InnerClass#MethodName". This usage is deprecated. Please use method 'delegates' instead.
private static final String[]
RENAMED_CLASSES
The list of classes to rename, must be an even list: the binary FQCN of class to replace followed by the new FQCN.
private static final String[]
JAVA_PKG_CLASSES
The list of class references to update, must be an even list: the binary FQCN of class to replace followed by the new FQCN. The classes to replace are to be excluded from the output.
private static final String[]
EXCLUDED_CLASSES
private static final String[]
DELETE_RETURNS
List of classes for which the methods returning them should be deleted. The array contains a list of null terminated section starting with the name of the class to rename in which the methods are deleted, followed by a list of return types identifying the methods to delete.
Constructors Summary
Methods Summary
public java.lang.String[]getDelegateClassNatives()
Returns the list of classes on which to delegate all native methods. The list can be empty but must not be null.

        return DELEGATE_CLASS_NATIVES;
    
public java.lang.String[]getDelegateMethods()
Returns the list of methods to rewrite as delegates. The list can be empty but must not be null.

        return DELEGATE_METHODS;
    
public java.lang.String[]getDeleteReturns()
Returns the list of classes for which the methods returning them should be deleted. The array contains a list of null terminated section starting with the name of the class to rename in which the methods are deleted, followed by a list of return types identifying the methods to delete. The list can be empty but must not be null.

        return DELETE_RETURNS;
    
public java.util.SetgetExcludedClasses()

        String[] refactoredClasses = getJavaPkgClasses();
        int count = refactoredClasses.length / 2 + EXCLUDED_CLASSES.length;
        Set<String> excludedClasses = new HashSet<String>(count);
        for (int i = 0; i < refactoredClasses.length; i+=2) {
            excludedClasses.add(refactoredClasses[i]);
        }
        excludedClasses.addAll(Arrays.asList(EXCLUDED_CLASSES));
        return excludedClasses;
    
public java.lang.Class[]getInjectedClasses()
Returns the list of class from layoutlib_create to inject in layoutlib. The list can be empty but must not be null.

        return INJECTED_CLASSES;
    
public java.lang.String[]getJavaPkgClasses()
Returns the list of classes to refactor, must be an even list: the binary FQCN of class to replace followed by the new FQCN. All references to the old class should be updated to the new class. The list can be empty but must not be null.

      return JAVA_PKG_CLASSES;
    
public java.lang.String[]getOverriddenMethods()
Returns The list of methods to stub out. Each entry must be in the form "package.package.OuterClass$InnerClass#MethodName". The list can be empty but must not be null.

This usage is deprecated. Please use method 'delegates' instead.

        return OVERRIDDEN_METHODS;
    
public java.lang.String[]getRenamedClasses()
Returns the list of classes to rename, must be an even list: the binary FQCN of class to replace followed by the new FQCN. The list can be empty but must not be null.

        return RENAMED_CLASSES;