Class AsmUtil
java.lang.Object
sootup.java.bytecode.frontend.conversion.AsmUtil
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
arrayTypetoJimpleType
(String desc) static Collection<JavaClassType>
asmIdToSignature
(Iterable<String> asmClassNames) static Object
convertAnnotationValue
(Object annotationValue) static Iterable<AnnotationUsage>
createAnnotationUsage
(List<org.objectweb.asm.tree.AnnotationNode> invisibleParameterAnnotation) static AnnotationUsage
createAnnotationUsage
(org.objectweb.asm.tree.AnnotationNode annotationNode) static EnumSet<FieldModifier>
getFieldModifiers
(int access) static org.objectweb.asm.tree.ClassNode
getModuleDescriptor
(Path moduleInfoFile) static EnumSet<ModuleModifier>
getModuleModifiers
(int access) protected static String
initAsmClassSource
(Path classSource, org.objectweb.asm.ClassVisitor classNode) Initializes a class node.static boolean
Determines if a type is a dword type.static JavaClassType
toJimpleClassType
(String asmClassName) toJimpleSignatureDesc
(String desc) Converts n types contained in desc to a list of Jimple Typesstatic Type
toJimpleType
(String desc) static String
toQualifiedName
(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
-
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
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
@Nonnull public static 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<org.objectweb.asm.tree.AnnotationNode> invisibleParameterAnnotation) -
convertAnnotationValue
-
getModuleDescriptor
-