java.lang.Object
sootup.java.bytecode.frontend.conversion.AsmUtil

public final class AsmUtil extends Object
  • Field Details

  • Method Details

    • initAsmClassSource

      protected static String initAsmClassSource(@Nonnull Path classSource, @Nonnull org.objectweb.asm.ClassVisitor classNode) throws IOException
      Initializes a class node.
      Parameters:
      classSource - The source.
      classNode - The node to initialize
      Returns:
      the actual class signature found in the compilation unit
      Throws:
      IOException
    • isDWord

      public static boolean isDWord(@Nonnull Type type)
      Determines if a type is a dword type.
      Parameters:
      type - the type to check.
      Returns:
      true if its a dword type.
    • toQualifiedName

      public static String toQualifiedName(@Nonnull String str)
      Converts an str class name to a fully qualified name.
      Parameters:
      str - str name.
      Returns:
      fully qualified name.
    • getFieldModifiers

      public static EnumSet<FieldModifier> getFieldModifiers(int access)
    • getModuleModifiers

      public static EnumSet<ModuleModifier> getModuleModifiers(int access)
    • asmIdToSignature

      @Nonnull public static Collection<JavaClassType> asmIdToSignature(@Nullable Iterable<String> asmClassNames)
    • toJimpleClassType

      @Nonnull public static JavaClassType toJimpleClassType(@Nonnull String asmClassName)
    • toJimpleType

      @Nonnull public static Type toJimpleType(@Nonnull String desc)
    • arrayTypetoJimpleType

      @Nonnull public static Type arrayTypetoJimpleType(@Nonnull String desc)
    • toJimpleSignatureDesc

      @Nonnull public static List<Type> toJimpleSignatureDesc(@Nonnull String desc)
      Converts n types contained in desc to a list of Jimple Types
    • toString

      public static String toString(org.objectweb.asm.tree.AbstractInsnNode insn)
    • createAnnotationUsage

      public static AnnotationUsage createAnnotationUsage(org.objectweb.asm.tree.AnnotationNode annotationNode)
    • createAnnotationUsage

      public static Iterable<AnnotationUsage> createAnnotationUsage(List<org.objectweb.asm.tree.AnnotationNode> invisibleParameterAnnotation)
    • convertAnnotationValue

      public static Object convertAnnotationValue(Object annotationValue)
    • getModuleDescriptor

      @Nonnull public static org.objectweb.asm.tree.ClassNode getModuleDescriptor(Path moduleInfoFile)