Searched refs:LiteralTools (Results 1 – 10 of 10) sorted by relevance
29 import org.jf.smali.LiteralTools;39 Assert.assertTrue(LiteralTools.parseByte("0x0T") == 0x0); in SuccessHexTests()40 Assert.assertTrue(LiteralTools.parseByte("0x00") == 0x0); in SuccessHexTests()41 Assert.assertTrue(LiteralTools.parseByte("0x1T") == 0x1); in SuccessHexTests()42 Assert.assertTrue(LiteralTools.parseByte("0x12") == 0x12); in SuccessHexTests()43 Assert.assertTrue(LiteralTools.parseByte("0x7fT") == 0x7f); in SuccessHexTests()44 Assert.assertTrue(LiteralTools.parseByte("0x80t") == Byte.MIN_VALUE); in SuccessHexTests()45 Assert.assertTrue(LiteralTools.parseByte("0xFFt") == -1); in SuccessHexTests()47 Assert.assertTrue(LiteralTools.parseByte("-0x00") == 0); in SuccessHexTests()48 Assert.assertTrue(LiteralTools.parseByte("-0x01") == -1); in SuccessHexTests()[all …]
29 import org.jf.smali.LiteralTools;39 Assert.assertTrue(LiteralTools.parseShort("0x0") == 0x0); in SuccessHexTests()40 Assert.assertTrue(LiteralTools.parseShort("0x00") == 0x0); in SuccessHexTests()41 Assert.assertTrue(LiteralTools.parseShort("0x1") == 0x1); in SuccessHexTests()42 Assert.assertTrue(LiteralTools.parseShort("0x1234") == 0x1234); in SuccessHexTests()43 Assert.assertTrue(LiteralTools.parseShort("0x7fff") == 0x7fff); in SuccessHexTests()44 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE); in SuccessHexTests()45 Assert.assertTrue(LiteralTools.parseShort("0xFFFF") == -1); in SuccessHexTests()47 Assert.assertTrue(LiteralTools.parseShort("-0x00") == 0); in SuccessHexTests()48 Assert.assertTrue(LiteralTools.parseShort("-0x01") == -1); in SuccessHexTests()[all …]
29 import org.jf.smali.LiteralTools;37 Assert.assertTrue(LiteralTools.parseLong("0x0L") == 0x0); in SuccessHexTests()38 Assert.assertTrue(LiteralTools.parseLong("0x00L") == 0x0); in SuccessHexTests()39 Assert.assertTrue(LiteralTools.parseLong("0x1L") == 0x1); in SuccessHexTests()40 Assert.assertTrue(LiteralTools.parseLong("0x1234567890123456L") == 0x1234567890123456L); in SuccessHexTests()41 Assert.assertTrue(LiteralTools.parseLong("0x7fffffffffffffffL") == 0x7fffffffffffffffL); in SuccessHexTests()42 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE); in SuccessHexTests()43 Assert.assertTrue(LiteralTools.parseLong("0xFFFFFFFFFFFFFFFFL") == -1); in SuccessHexTests()45 Assert.assertTrue(LiteralTools.parseLong("-0x00L") == 0); in SuccessHexTests()46 Assert.assertTrue(LiteralTools.parseLong("-0x01L") == -1); in SuccessHexTests()[all …]
29 import org.jf.smali.LiteralTools;38 Assert.assertTrue(LiteralTools.parseInt("0x0") == 0x0); in SuccessHexTests()39 Assert.assertTrue(LiteralTools.parseInt("0x00") == 0x0); in SuccessHexTests()40 Assert.assertTrue(LiteralTools.parseInt("0x1") == 0x1); in SuccessHexTests()41 Assert.assertTrue(LiteralTools.parseInt("0x12345678") == 0x12345678); in SuccessHexTests()42 Assert.assertTrue(LiteralTools.parseInt("0x7fffffff") == 0x7fffffff); in SuccessHexTests()43 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE); in SuccessHexTests()44 Assert.assertTrue(LiteralTools.parseInt("0xFFFFFFFF") == -1); in SuccessHexTests()46 Assert.assertTrue(LiteralTools.parseInt("-0x00") == 0); in SuccessHexTests()47 Assert.assertTrue(LiteralTools.parseInt("-0x01") == -1); in SuccessHexTests()[all …]
37 import org.jf.smali.LiteralTools;58 return LiteralTools.parseLong(literalNode.getText()); in getIntegralValue()61 return LiteralTools.parseInt(literalNode.getText()); in getIntegralValue()63 return LiteralTools.parseShort(literalNode.getText()); in getIntegralValue()68 return LiteralTools.parseByte(literalNode.getText()); in getIntegralValue()
314 | long_literal { LiteralTools.checkInt($long_literal.value); $value = (int)$long_literal.value; }802 LiteralTools.checkNibble(litB);963 LiteralTools.checkByte(litC);1245 LiteralTools.checkShort($long_literal.value);1250 LiteralTools.checkShort($integer_literal.value);1260 LiteralTools.checkInt($long_literal.value);1269 : INTEGER_LITERAL { $value = LiteralTools.parseInt($INTEGER_LITERAL.text); };1272 : LONG_LITERAL { $value = LiteralTools.parseLong($LONG_LITERAL.text); };1275 : SHORT_LITERAL { $value = LiteralTools.parseShort($SHORT_LITERAL.text); };1278 : BYTE_LITERAL { $value = LiteralTools.parseByte($BYTE_LITERAL.text); };[all …]
648 : integer_literal { $value = LiteralTools.parseInt($integer_literal.text); };
34 public class LiteralTools class
1814 LiteralTools.checkInt(long_literal56); value = (int)long_literal56; in fixed_32bit_literal()4733 LiteralTools.checkNibble(litB); in insn_format11n()5345 LiteralTools.checkByte(litC); in insn_format22b()6513 LiteralTools.checkShort(long_literal195); in short_integral_literal()6526 LiteralTools.checkShort(integer_literal196); in short_integral_literal()6626 LiteralTools.checkInt(long_literal200); in integral_literal()6690 value = LiteralTools.parseInt((INTEGER_LITERAL204!=null?INTEGER_LITERAL204.getText():null)); in integer_literal()6720 value = LiteralTools.parseLong((LONG_LITERAL205!=null?LONG_LITERAL205.getText():null)); in long_literal()6750 value = LiteralTools.parseShort((SHORT_LITERAL206!=null?SHORT_LITERAL206.getText():null)); in short_literal()6780 value = LiteralTools.parseByte((BYTE_LITERAL207!=null?BYTE_LITERAL207.getText():null)); in byte_literal()[all …]
5293 …retval.value = LiteralTools.parseInt((integer_literal125!=null?input.toString(integer_literal125.s… in parsed_integer_literal()