类 ReflectiveModelExecutor.Builder
java.lang.Object
proguard.evaluation.executor.ReflectiveModelExecutor.Builder
- 所有已实现的接口:
Executor.Builder<ReflectiveModelExecutor>
public static class ReflectiveModelExecutor.Builder
extends Object
implements Executor.Builder<ReflectiveModelExecutor>
Builder for
ReflectiveModelExecutor.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T extends ReflectiveModel<T>>
ReflectiveModelExecutor.BuilderaddSupportedModel(ReflectiveModelExecutor.SupportedModelInfo<T> modelInfo) Add a model to support.addSupportedModels(Collection<ReflectiveModelExecutor.SupportedModelInfo<? extends ReflectiveModel<?>>> modelInfo) Add a models to support.build()Build an executor.
-
构造器详细资料
-
Builder
Construct the builder.- 参数:
hierarchy- the class hierarchy.
-
-
方法详细资料
-
addSupportedModel
public <T extends ReflectiveModel<T>> ReflectiveModelExecutor.Builder addSupportedModel(ReflectiveModelExecutor.SupportedModelInfo<T> modelInfo) Add a model to support.- 类型参数:
T- recursive generic type of the model.- 参数:
modelInfo- information on which model to support and how to support it.- 返回:
- the builder.
-
addSupportedModels
public ReflectiveModelExecutor.Builder addSupportedModels(Collection<ReflectiveModelExecutor.SupportedModelInfo<? extends ReflectiveModel<?>>> modelInfo) Add a models to support.- 参数:
modelInfo- information on which models to support and how to support each of them.- 返回:
- the builder.
-
build
从接口复制的说明:Executor.BuilderBuild an executor. If the executor keeps internal state this method needs to guarantee that no data is shared between the different implementations (unless needed by design, e.g., for caching).- 指定者:
build在接口中Executor.Builder<ReflectiveModelExecutor>
-