类 ReflectiveModelExecutor.Builder
- java.lang.Object
-
- proguard.evaluation.executor.ReflectiveModelExecutor.Builder
-
- 所有已实现的接口:
Executor.Builder<ReflectiveModelExecutor>
public static class ReflectiveModelExecutor.Builder extends java.lang.Object implements Executor.Builder<ReflectiveModelExecutor>
Builder forReflectiveModelExecutor.
-
-
构造器概要
构造器 构造器 说明 Builder(HierarchyProvider hierarchy)Construct the builder.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <T extends ReflectiveModel<T>>
ReflectiveModelExecutor.BuilderaddSupportedModel(ReflectiveModelExecutor.SupportedModelInfo<T> modelInfo)Add a model to support.ReflectiveModelExecutor.BuilderaddSupportedModels(java.util.Collection<ReflectiveModelExecutor.SupportedModelInfo<? extends ReflectiveModel<?>>> modelInfo)Add a models to support.ReflectiveModelExecutorbuild()Build an executor.
-
-
-
构造器详细资料
-
Builder
public Builder(HierarchyProvider hierarchy)
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(java.util.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
public ReflectiveModelExecutor 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>
-
-