类 ValueAnalyzer.Builder
java.lang.Object
proguard.analysis.cpa.util.ValueAnalyzer.Builder
- 封闭类:
- ValueAnalyzer
Class to configure and build a
ValueAnalyzer.
Each separate built ValueAnalyzer uses its own BamCache, so different
analyzers won't share results, while all execution of ValueAnalyzer.analyze(MethodSignature) from the same analyzer will use the same cache.
-
构造器概要
构造器构造器说明Create a builder for aValueAnalyzerusing a defaultExecutingInvocationUnit.Builder(JvmCfa cfa, ExecutingInvocationUnit.Builder invocationUnitBuilder) Create a builder for aValueAnalyzerusing a customExecutingInvocationUnit. -
方法概要
修饰符和类型方法说明build()Build aValueAnalyzer.setAbortOperator(AbortOperator abortOperator) Sets the abort operator to allow premature CPA algorithm termination.setMaxCallStackDepth(int maxCallStackDepth) Set the max depth call depth of the inter-procedural analysis.
-
构造器详细资料
-
Builder
Create a builder for aValueAnalyzerusing a defaultExecutingInvocationUnit.The
InvocationUnitdefines how to handle invocations ofLibraryMethods through customExecutors.The only executor for the default invocation unit is
StringReflectionExecutor. -
Builder
Create a builder for aValueAnalyzerusing a customExecutingInvocationUnit.The
InvocationUnitdefines how to handle invocations ofLibraryMethods.
-
-
方法详细资料
-
build
Build aValueAnalyzer. -
setMaxCallStackDepth
Set the max depth call depth of the inter-procedural analysis. After the max depth has been reached, the analysis will provide a default result for the method (i.e., in the same wayLibraryMethods are usually not analyzed).The default value is 10.
- 参数:
maxCallStackDepth- maximum depth of the call stack analyzed inter-procedurally. 0 means intra-procedural analysis.< 0means no maximum depth.- 返回:
- this
ValueAnalyzerbuilder.
-
setAbortOperator
Sets the abort operator to allow premature CPA algorithm termination.The default operator never aborts the analysis.
- 参数:
abortOperator- anAbortOperator.- 返回:
- this
ValueAnalyzerbuilder.
-