public class AsmUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
baseTypeName(String s)
strips suffix for indicating an array type
|
static boolean |
isDWord(Type type)
Determines if a type is a dword type.
|
static Type |
toBaseType(String internal,
com.google.common.base.Optional<String> moduleName)
Converts an internal class name to a Type.
|
static String |
toInternalName(SootClass cls)
Determines and returns the internal name of a class.
|
static String |
toInternalName(String qual)
Converts a fully qualified class name to an internal name.
|
static List<Type> |
toJimpleDesc(String desc,
com.google.common.base.Optional<String> moduleName)
Converts a method signature to a list of types, with the last entry in the returned list denoting the return type.
|
static Type |
toJimpleRefType(String desc,
com.google.common.base.Optional<String> moduleName)
Converts a type descriptor to a Jimple reference type.
|
static Type |
toJimpleType(String desc,
com.google.common.base.Optional<String> moduleName)
Converts a type descriptor to a Jimple type.
|
static String |
toQualifiedName(String internal)
Converts an internal class name to a fully qualified name.
|
public static boolean isDWord(Type type)
type - the type to check.true if its a dword type.public static Type toBaseType(String internal, com.google.common.base.Optional<String> moduleName)
internal - internal name.public static String toQualifiedName(String internal)
internal - internal name.public static String toInternalName(String qual)
qual - fully qualified class name.public static String toInternalName(SootClass cls)
cls - the class.public static Type toJimpleRefType(String desc, com.google.common.base.Optional<String> moduleName)
desc - the descriptor.public static Type toJimpleType(String desc, com.google.common.base.Optional<String> moduleName)
desc - the descriptor.public static List<Type> toJimpleDesc(String desc, com.google.common.base.Optional<String> moduleName)
desc - method signature.Copyright © 2020 Soot OSS. All rights reserved.