类 StringReflectionExecutor
- java.lang.Object
-
- proguard.evaluation.executor.ReflectionExecutor
-
- proguard.evaluation.executor.StringReflectionExecutor
-
- 所有已实现的接口:
Executor
public class StringReflectionExecutor extends ReflectionExecutor
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classStringReflectionExecutor.BuilderA builder forStringReflectionExecutor.-
从类继承的嵌套类/接口 proguard.evaluation.executor.ReflectionExecutor
ReflectionExecutor.InstanceCopyResult
-
-
构造器概要
构造器 构造器 说明 StringReflectionExecutor(ClassPool libraryClassPool)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ExecutorInstanceHandlergetDefaultInstanceHandler()Provides a default instance handler used by the executor in case the reflective execution fails.java.util.Optional<ReflectionExecutor.InstanceCopyResult>getInstanceOrCopyIfMutable(ReferenceValue instanceValue)Get an object which will act as the calling instance.java.util.Set<MethodSignature>getSupportedMethodSignatures()Get a list of method signatures that indicate which methods are supported by this executor.-
从类继承的方法 proguard.evaluation.executor.ReflectionExecutor
getMethodResult
-
-
-
-
构造器详细资料
-
StringReflectionExecutor
public StringReflectionExecutor(ClassPool libraryClassPool)
-
-
方法详细资料
-
getInstanceOrCopyIfMutable
public java.util.Optional<ReflectionExecutor.InstanceCopyResult> getInstanceOrCopyIfMutable(ReferenceValue instanceValue)
从类复制的说明:ReflectionExecutorGet an object which will act as the calling instance. If we know that executing the method does not modify the instance this can just be the same value. Otherwise, a copy should be returned in order to not change the reference whose state may be of interest at the end of an analysis.- 指定者:
getInstanceOrCopyIfMutable在类中ReflectionExecutor- 参数:
instanceValue- TheReferenceValueof the instance.- 返回:
- The new calling instance.
-
getDefaultInstanceHandler
public ExecutorInstanceHandler getDefaultInstanceHandler()
从类复制的说明:ReflectionExecutorProvides a default instance handler used by the executor in case the reflective execution fails.The handler carries information on whether a method returns the same object as its instance.
- 指定者:
getDefaultInstanceHandler在类中ReflectionExecutor- 返回:
- the default instance handler.
-
getSupportedMethodSignatures
public java.util.Set<MethodSignature> getSupportedMethodSignatures()
从接口复制的说明:ExecutorGet a list of method signatures that indicate which methods are supported by this executor.The returned methods should be exactly the ones that the executor is expected to be able to handle. The invocation unit does not make any additional assumption on the executors available to execute a method and will match them iff the signature of the target method matches exactly.
Only full method signatures should be returned, the invocation unit does not support wildcards.
- 返回:
- a set of methods the executor can handle.
-
-