public class ASMBackendUtils
extends java.lang.Object
| Constructor and Description | 
|---|
| ASMBackendUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | acceptsStringInitialValue(SootField field)Determine if the field accepts a string default value, this 
 is only true for fields of type String or a sub-type of String | 
| static org.objectweb.asm.Attribute | createASMAttribute(Attribute attr)Create an ASM attribute from an Soot attribute | 
| static java.lang.Object | getDefaultValue(SootField field)Get default value of a field for constant pool | 
| static int | sizeOfType(Type t)Get the size in words for a type. | 
| static java.lang.String | slashify(java.lang.String s)Convert class identifiers and signatures by 
 replacing dots by slashes. | 
| static java.lang.String | toTypeDesc(SootMethodRef m)Compute type description for methods, comprising 
 parameter types and return type. | 
| static java.lang.String | toTypeDesc(Type type)Convert type to JVM style type description | 
| static java.lang.String | translateJavaVersion(int javaVersion)Translate internal numbering of java versions to real version 
 for debug messages. | 
public static java.lang.String slashify(java.lang.String s)
s - String to convertpublic static java.lang.String toTypeDesc(SootMethodRef m)
m - Method to determine type descriptionpublic static java.lang.String toTypeDesc(Type type)
type - Type to convertpublic static java.lang.Object getDefaultValue(SootField field)
field - Field to get default value fornull if 
 there is no default value.public static boolean acceptsStringInitialValue(SootField field)
field - Fieldtrue if the field is of type String or sub-type,
 false otherwise.public static int sizeOfType(Type t)
t - Typepublic static org.objectweb.asm.Attribute createASMAttribute(Attribute attr)
attr - Soot attributepublic static java.lang.String translateJavaVersion(int javaVersion)
javaVersion - Internal java version number