类 StringReflectionExecutor

    • 构造器详细资料

      • StringReflectionExecutor

        public StringReflectionExecutor​(ClassPool libraryClassPool)
    • 方法详细资料

      • getInstanceOrCopyIfMutable

        public java.util.Optional<ReflectionExecutor.InstanceCopyResult> getInstanceOrCopyIfMutable​(ReferenceValue instanceValue)
        从类复制的说明: ReflectionExecutor
        Get 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 - The ReferenceValue of the instance.
        返回:
        The new calling instance.
      • getDefaultInstanceHandler

        public ExecutorInstanceHandler getDefaultInstanceHandler()
        从类复制的说明: ReflectionExecutor
        Provides 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()
        从接口复制的说明: Executor
        Get 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.