Class AsmUtil
java.lang.Object
sootup.java.bytecode.frontend.conversion.AsmUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Type
arrayTypetoJimpleType
(@NonNull String desc) static @NonNull Collection<JavaClassType>
asmIdToSignature
(@Nullable Iterable<String> asmClassNames) static Object
convertAnnotationValue
(Object annotationValue) static Iterable<AnnotationUsage>
createAnnotationUsage
(List<? extends org.objectweb.asm.tree.AnnotationNode> invisibleParameterAnnotation) static AnnotationUsage
createAnnotationUsage
(org.objectweb.asm.tree.AnnotationNode annotationNode) static SootClassSource
createClassSource
(@NonNull AnalysisInputLocation analysisInputLocation, @NonNull Path sourcePath, @NonNull ClassType classType, @NonNull org.objectweb.asm.tree.ClassNode classNode) static EnumSet<FieldModifier>
getFieldModifiers
(int access) static @NonNull org.objectweb.asm.tree.ClassNode
getModuleDescriptor
(Path moduleInfoFile) static EnumSet<ModuleModifier>
getModuleModifiers
(int access) static boolean
Determines if a type is a dword type.readClassName
(@NonNull Path classSource, @NonNull org.objectweb.asm.ClassVisitor classNode) Initializes a class node.static @NonNull JavaClassType
toJimpleClassType
(@NonNull String asmClassName) toJimpleSignatureDesc
(@NonNull String desc) Converts n types contained in desc to a list of Jimple Typesstatic @NonNull Type
toJimpleType
(@NonNull String desc) static String
toQualifiedName
(@NonNull String str) Converts an str class name to a fully qualified name.static String
toString
(org.objectweb.asm.tree.AbstractInsnNode insn)
-
Field Details
-
SUPPORTED_ASM_OPCODE
public static final int SUPPORTED_ASM_OPCODE- See Also:
-
-
Method Details
-
readClassName
protected static Optional<String> readClassName(@NonNull Path classSource, @NonNull org.objectweb.asm.ClassVisitor classNode) Initializes a class node.- Parameters:
classSource
- The source.classNode
- The node to initialize- Returns:
- the actual class signature found in the compilation unit
-
createClassSource
public static SootClassSource createClassSource(@NonNull AnalysisInputLocation analysisInputLocation, @NonNull Path sourcePath, @NonNull ClassType classType, @NonNull org.objectweb.asm.tree.ClassNode classNode) -
isDWord
Determines if a type is a dword type.- Parameters:
type
- the type to check.- Returns:
true
if its a dword type.
-
toQualifiedName
Converts an str class name to a fully qualified name.- Parameters:
str
- str name.- Returns:
- fully qualified name.
-
getFieldModifiers
-
getModuleModifiers
-
asmIdToSignature
public static @NonNull Collection<JavaClassType> asmIdToSignature(@Nullable Iterable<String> asmClassNames) -
toJimpleClassType
-
toJimpleType
-
arrayTypetoJimpleType
-
toJimpleSignatureDesc
Converts n types contained in desc to a list of Jimple Types -
toString
-
createAnnotationUsage
public static AnnotationUsage createAnnotationUsage(org.objectweb.asm.tree.AnnotationNode annotationNode) -
createAnnotationUsage
public static Iterable<AnnotationUsage> createAnnotationUsage(List<? extends org.objectweb.asm.tree.AnnotationNode> invisibleParameterAnnotation) -
convertAnnotationValue
-
getModuleDescriptor
-