程序包 proguard.util

类 PartialEvaluatorUtils


  • public class PartialEvaluatorUtils
    extends java.lang.Object
    Helper functions to access PartialEvaluator results more conveniently.
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static java.lang.Object getIdFromSpecificReferenceValue​(ReferenceValue value)
      Returns the identifier of a reference value for which Value.isSpecific() is true (i.e., the reference is identified by a unique number).
      static Value getStackBefore​(PartialEvaluator partialEvaluator, int offset, int index)
      Returns the value from the before stack at offset, counting from the top.
      static Value getStackValue​(Stack stack, int indexFromTop)
      Returns the value from the stack, counting from the top of the stack.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • getStackValue

        public static Value getStackValue​(Stack stack,
                                          int indexFromTop)
        Returns the value from the stack, counting from the top of the stack. If the stack does not contain that many elements, returns null.
      • getStackBefore

        public static Value getStackBefore​(PartialEvaluator partialEvaluator,
                                           int offset,
                                           int index)
        Returns the value from the before stack at offset, counting from the top. If the stack does not contain that many elements, returns null.
      • getIdFromSpecificReferenceValue

        public static java.lang.Object getIdFromSpecificReferenceValue​(ReferenceValue value)
        Returns the identifier of a reference value for which Value.isSpecific() is true (i.e., the reference is identified by a unique number).

        This helper method is needed because IdentifiedReferenceValue and IdentifiedArrayReferenceValue do not share the relevant portion of the class hierarchy, but a better solution should be implemented in the future.