Example #1
0
 public static String ReturnType2Java(SmaliLine.LineReturnType rt, String customType)
 {
     if (rt.ToString().EndsWith("Array"))
     {
         if (rt == SmaliLine.LineReturnType.CustomArray)
         {
             if (customType != "")
                 return customType.Substring(1) + "[] ";
             else
                 return customType.Substring(1) + "[]";
         }
         else
             return Name2Java(rt.ToString().Replace("Array","").ToLowerInvariant().Trim()) + "[] ";
     }
     else
     {
         if (rt == SmaliLine.LineReturnType.Custom)
         {
             if (customType != "")
                 return customType + ' ';
             else
                 return customType;
         }
         else
             return Name2Java(rt.ToString().ToLowerInvariant().Trim()) + ' ';
     }
 }
Example #2
0
 public static String Modifiers2Java(SmaliLine.EAccessMod eAccessMod, SmaliLine.ENonAccessMod eNonAccessMod)
 {
     return String.Join(" ", new String[] { eAccessMod == 0 ? "" : eAccessMod.ToString().ToLowerInvariant().Replace(",", ""), eNonAccessMod == 0 ? "" : eNonAccessMod.ToString().ToLowerInvariant().Replace(",", "") });
 }