Class EncodedValueUtils

java.lang.Object
jadx.core.utils.EncodedValueUtils

public class EncodedValueUtils extends Object
  • Constructor Details

    • EncodedValueUtils

      public EncodedValueUtils()
  • Method Details

    • convertToConstValue

      @Nullable public static @Nullable Object convertToConstValue(EncodedValue encodedValue)
      Return constant literal from jadx.api.plugins.input.data.annotations.EncodedValue
      Returns:
      LiteralArg, String, ArgType or null
    • convertToInsnArg

      public static InsnArg convertToInsnArg(RootNode root, EncodedValue value)
    • buildMethodType

      private static InvokeNode buildMethodType(RootNode root, IMethodProto methodProto)
    • getTypeField

      public static FieldInfo getTypeField(RootNode root, PrimitiveType type)
    • buildMethodHandle

      private static InsnNode buildMethodHandle(RootNode root, IMethodHandle methodHandle)
      Build `MethodHandles.lookup().find{type}(methodCls, methodName, methodType)`
    • buildLookupArg

      public static InsnArg buildLookupArg(RootNode root)
    • getFindMethodName

      private static String getFindMethodName(MethodHandleType type)