Searched refs:LiteralTools (Results 1 – 10 of 10) sorted by relevance
32 package org.jf.smali;import org.jf.smali.LiteralTools;42 Assert.assertTrue(LiteralTools.parseShort("0x0") == 0x0); in SuccessHexTests()43 Assert.assertTrue(LiteralTools.parseShort("0x00") == 0x0); in SuccessHexTests()44 Assert.assertTrue(LiteralTools.parseShort("0x1") == 0x1); in SuccessHexTests()45 Assert.assertTrue(LiteralTools.parseShort("0x1234") == 0x1234); in SuccessHexTests()46 Assert.assertTrue(LiteralTools.parseShort("0x7fff") == 0x7fff); in SuccessHexTests()47 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE); in SuccessHexTests()48 Assert.assertTrue(LiteralTools.parseShort("0xFFFF") == -1); in SuccessHexTests()50 Assert.assertTrue(LiteralTools.parseShort("-0x00") == 0); in SuccessHexTests()51 Assert.assertTrue(LiteralTools.parseShort("-0x01") == -1); in SuccessHexTests()[all …]
32 package org.jf.smali;import org.jf.smali.LiteralTools;42 Assert.assertTrue(LiteralTools.parseByte("0x0T") == 0x0); in SuccessHexTests()43 Assert.assertTrue(LiteralTools.parseByte("0x00") == 0x0); in SuccessHexTests()44 Assert.assertTrue(LiteralTools.parseByte("0x1T") == 0x1); in SuccessHexTests()45 Assert.assertTrue(LiteralTools.parseByte("0x12") == 0x12); in SuccessHexTests()46 Assert.assertTrue(LiteralTools.parseByte("0x7fT") == 0x7f); in SuccessHexTests()47 Assert.assertTrue(LiteralTools.parseByte("0x80t") == Byte.MIN_VALUE); in SuccessHexTests()48 Assert.assertTrue(LiteralTools.parseByte("0xFFt") == -1); in SuccessHexTests()50 Assert.assertTrue(LiteralTools.parseByte("-0x00") == 0); in SuccessHexTests()51 Assert.assertTrue(LiteralTools.parseByte("-0x01") == -1); in SuccessHexTests()[all …]
32 package org.jf.smali;import org.jf.smali.LiteralTools;40 Assert.assertTrue(LiteralTools.parseLong("0x0L") == 0x0); in SuccessHexTests()41 Assert.assertTrue(LiteralTools.parseLong("0x00L") == 0x0); in SuccessHexTests()42 Assert.assertTrue(LiteralTools.parseLong("0x1L") == 0x1); in SuccessHexTests()43 Assert.assertTrue(LiteralTools.parseLong("0x1234567890123456L") == 0x1234567890123456L); in SuccessHexTests()44 Assert.assertTrue(LiteralTools.parseLong("0x7fffffffffffffffL") == 0x7fffffffffffffffL); in SuccessHexTests()45 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE); in SuccessHexTests()46 Assert.assertTrue(LiteralTools.parseLong("0xFFFFFFFFFFFFFFFFL") == -1); in SuccessHexTests()48 Assert.assertTrue(LiteralTools.parseLong("-0x00L") == 0); in SuccessHexTests()49 Assert.assertTrue(LiteralTools.parseLong("-0x01L") == -1); in SuccessHexTests()[all …]
32 package org.jf.smali;import org.jf.smali.LiteralTools;41 Assert.assertTrue(LiteralTools.parseInt("0x0") == 0x0); in SuccessHexTests()42 Assert.assertTrue(LiteralTools.parseInt("0x00") == 0x0); in SuccessHexTests()43 Assert.assertTrue(LiteralTools.parseInt("0x1") == 0x1); in SuccessHexTests()44 Assert.assertTrue(LiteralTools.parseInt("0x12345678") == 0x12345678); in SuccessHexTests()45 Assert.assertTrue(LiteralTools.parseInt("0x7fffffff") == 0x7fffffff); in SuccessHexTests()46 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE); in SuccessHexTests()47 Assert.assertTrue(LiteralTools.parseInt("0xFFFFFFFF") == -1); in SuccessHexTests()49 Assert.assertTrue(LiteralTools.parseInt("-0x00") == 0); in SuccessHexTests()50 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()
315 | long_literal { LiteralTools.checkInt($long_literal.value); $value = (int)$long_literal.value; }785 LiteralTools.checkNibble(litB);922 LiteralTools.checkByte(litC);1216 LiteralTools.checkShort($long_literal.value);1221 LiteralTools.checkShort($integer_literal.value);1231 LiteralTools.checkInt($long_literal.value);1240 : INTEGER_LITERAL { $value = LiteralTools.parseInt($INTEGER_LITERAL.text); };1243 : LONG_LITERAL { $value = LiteralTools.parseLong($LONG_LITERAL.text); };1246 : SHORT_LITERAL { $value = LiteralTools.parseShort($SHORT_LITERAL.text); };1249 : BYTE_LITERAL { $value = LiteralTools.parseByte($BYTE_LITERAL.text); };[all …]
642 : integer_literal { $value = LiteralTools.parseInt($integer_literal.text); };
34 public class LiteralTools class
1806 LiteralTools.checkInt(long_literal56); value = (int)long_literal56; in fixed_32bit_literal()4682 LiteralTools.checkNibble(litB); in insn_format11n()5206 LiteralTools.checkByte(litC); in insn_format22b()6535 LiteralTools.checkShort(long_literal195); in short_integral_literal()6548 LiteralTools.checkShort(integer_literal196); in short_integral_literal()6648 LiteralTools.checkInt(long_literal200); in integral_literal()6712 value = LiteralTools.parseInt((INTEGER_LITERAL204!=null?INTEGER_LITERAL204.getText():null)); in integer_literal()6742 value = LiteralTools.parseLong((LONG_LITERAL205!=null?LONG_LITERAL205.getText():null)); in long_literal()6772 value = LiteralTools.parseShort((SHORT_LITERAL206!=null?SHORT_LITERAL206.getText():null)); in short_literal()6802 value = LiteralTools.parseByte((BYTE_LITERAL207!=null?BYTE_LITERAL207.getText():null)); in byte_literal()[all …]
5360 …retval.value = LiteralTools.parseInt((integer_literal125!=null?input.toString(integer_literal125.s… in parsed_integer_literal()