Class AsmUtil
java.lang.Object
sootup.java.bytecode.frontend.conversion.AsmUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull TypearrayTypetoJimpleType(@NonNull String desc) static @NonNull Collection<JavaClassType>asmIdToSignature(@Nullable Iterable<String> asmClassNames) static ObjectconvertAnnotationValue(Object annotationValue) static Iterable<AnnotationUsage>createAnnotationUsage(List<? extends org.objectweb.asm.tree.AnnotationNode> invisibleParameterAnnotation) static AnnotationUsagecreateAnnotationUsage(org.objectweb.asm.tree.AnnotationNode annotationNode) static SootClassSourcecreateClassSource(@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.ClassNodegetModuleDescriptor(Path moduleInfoFile) static EnumSet<ModuleModifier>getModuleModifiers(int access) static booleanDetermines if a type is a dword type.readClassName(@NonNull Path classSource, @NonNull org.objectweb.asm.ClassVisitor classNode) Initializes a class node.static @NonNull JavaClassTypetoJimpleClassType(@NonNull String asmClassName) toJimpleSignatureDesc(@NonNull String desc) Converts n types contained in desc to a list of Jimple Typesstatic @NonNull TypetoJimpleType(@NonNull String desc) static StringtoQualifiedName(@NonNull String str) Converts an str class name to a fully qualified name.static StringtoString(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:
trueif 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
-