程序包 proguard.util
类 PartialEvaluatorUtils
java.lang.Object
proguard.util.PartialEvaluatorUtils
Helper functions to access PartialEvaluator results more conveniently.
-
方法概要
修饰符和类型方法说明static ObjectReturns the identifier of a reference value for whichValue.isSpecific()is true (i.e., the reference is identified by a unique number).static ValuegetStackBefore(PartialEvaluator partialEvaluator, int offset, int index) Returns the value from the before stack at offset, counting from the top.static ValuegetStackValue(Stack stack, int indexFromTop) Returns the value from the stack, counting from the top of the stack.
-
方法详细资料
-
getStackValue
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
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
Returns the identifier of a reference value for whichValue.isSpecific()is true (i.e., the reference is identified by a unique number).This helper method is needed because
IdentifiedReferenceValueandIdentifiedArrayReferenceValuedo not share the relevant portion of the class hierarchy, but a better solution should be implemented in the future.
-