Package org.jf.smali

Class LiteralTools

java.lang.Object
org.jf.smali.LiteralTools

public class LiteralTools extends Object
  • Field Details

    • specialFloatRegex

      private static Pattern specialFloatRegex
    • specialDoubleRegex

      private static Pattern specialDoubleRegex
  • Constructor Details

    • LiteralTools

      public LiteralTools()
  • Method Details

    • parseByte

      public static byte parseByte(String byteLiteral) throws NumberFormatException
      Throws:
      NumberFormatException
    • parseShort

      public static short parseShort(String shortLiteral) throws NumberFormatException
      Throws:
      NumberFormatException
    • parseInt

      public static int parseInt(String intLiteral) throws NumberFormatException
      Throws:
      NumberFormatException
    • parseLong

      public static long parseLong(String longLiteral) throws NumberFormatException
      Throws:
      NumberFormatException
    • parseFloat

      public static float parseFloat(String floatString)
    • parseDouble

      public static double parseDouble(String doubleString)
    • longToBytes

      public static byte[] longToBytes(long value)
    • intToBytes

      public static byte[] intToBytes(int value)
    • shortToBytes

      public static byte[] shortToBytes(short value)
    • floatToBytes

      public static byte[] floatToBytes(float value)
    • doubleToBytes

      public static byte[] doubleToBytes(double value)
    • charToBytes

      public static byte[] charToBytes(char value)
    • boolToBytes

      public static byte[] boolToBytes(boolean value)
    • checkInt

      public static void checkInt(long value)
    • checkShort

      public static void checkShort(long value)
    • checkByte

      public static void checkByte(long value)
    • checkNibble

      public static void checkNibble(long value)