Package com.googlecode.d2j.smali
Class Utils
java.lang.Object
com.googlecode.d2j.smali.Utils
- All Implemented Interfaces:
com.googlecode.d2j.DexConstants
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.googlecode.d2j.DexConstants
ACC_ABSTRACT, ACC_ANNOTATION, ACC_BRIDGE, ACC_CONSTRUCTOR, ACC_DECLARED_SYNCHRONIZED, ACC_DEX_HIDDEN_BIT, ACC_DEX_HIDDEN_BIT_NATIVE, ACC_ENUM, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SYNCHRONIZED, ACC_SYNTHETIC, ACC_TRANSIENT, ACC_VARARGS, ACC_VISIBILITY_FLAGS, ACC_VOLATILE, ANNOTATION_DEFAULT_TYPE, ANNOTATION_ENCLOSING_CLASS_TYPE, ANNOTATION_ENCLOSING_METHOD_TYPE, ANNOTATION_INNER_CLASS_TYPE, ANNOTATION_MEMBER_CLASSES_TYPE, ANNOTATION_SIGNATURE_TYPE, ANNOTATION_THROWS_TYPE, DEX_035, DEX_036, DEX_037, DEX_038, DEX_039, DEX_040 -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoAccept(com.googlecode.d2j.visitors.DexAnnotationVisitor dexAnnotationVisitor, String k, Object value) static intfindString(String str, int start, int end, char dEnd) static intstatic com.googlecode.d2j.VisibilitygetAnnVisibility(String name) static com.googlecode.d2j.reader.Opstatic intmethodIns(com.googlecode.d2j.Method m, boolean isStatic) static Bytestatic doubleparseDouble(String str) static com.googlecode.d2j.FieldparseFieldAndUnescape(String full) static com.googlecode.d2j.FieldparseFieldAndUnescape(String owner, String part) static floatparseFloat(String str) static intstatic intstatic Longstatic com.googlecode.d2j.MethodparseMethodAndUnescape(String full) static com.googlecode.d2j.MethodparseMethodAndUnescape(String owner, String part) static com.googlecode.d2j.ProtoparseProtoAndUnescape(String part) static ShortparseShort(String str) static intreg2ParamIdx(com.googlecode.d2j.Method m, int reg, int locals, boolean isStatic) static byte[]toByteArray(List<Object> ss) static int[]toIntArray(List<String> ss) static String[]toTypeList(String s) static Stringstatic Stringstatic CharacterunescapeChar(String str) static StringunEscapeId(String str) static StringunescapeStr(String str)
-
Method Details
-
doAccept
-
getAcc
-
listDesc
-
toTypeList
-
parseByte
-
parseShort
-
parseLong
-
parseFloat
-
parseDouble
-
parseInt
-
parseInt
-
unescapeStr
-
unescapeChar
-
toIntArray
-
toByteArray
-
getOp
-
unEscape
-
unEscapeId
-
findString
-
unEscape0
-
getAnnVisibility
-
methodIns
public static int methodIns(com.googlecode.d2j.Method m, boolean isStatic) -
reg2ParamIdx
public static int reg2ParamIdx(com.googlecode.d2j.Method m, int reg, int locals, boolean isStatic) -
parseProtoAndUnescape
- Throws:
RuntimeException
-
parseMethodAndUnescape
public static com.googlecode.d2j.Method parseMethodAndUnescape(String owner, String part) throws RuntimeException - Throws:
RuntimeException
-
parseMethodAndUnescape
- Throws:
RuntimeException
-
parseFieldAndUnescape
public static com.googlecode.d2j.Field parseFieldAndUnescape(String owner, String part) throws RuntimeException - Throws:
RuntimeException
-
parseFieldAndUnescape
- Throws:
RuntimeException
-