Home
last modified time | relevance | path

Searched refs:LiteralTools (Results 1 – 10 of 10) sorted by relevance

/external/smali/smali/src/test/java/org/jf/smali/
DByteLiteralTest.java32 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 …]
DLongLiteralTest.java32 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 …]
DShortLiteralTest.java32 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 …]
DIntLiteralTest.java32 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 …]
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliLiteral.java37 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()
/external/smali/smali/src/main/antlr/
DsmaliTreeWalker.g320 | long_literal { LiteralTools.checkInt($long_literal.value); $value = (int)$long_literal.value; }
833 LiteralTools.checkNibble(litB);
996 LiteralTools.checkByte(litC);
1318 LiteralTools.checkShort($long_literal.value);
1323 LiteralTools.checkShort($integer_literal.value);
1333 LiteralTools.checkInt($long_literal.value);
1342 : INTEGER_LITERAL { $value = LiteralTools.parseInt($INTEGER_LITERAL.text); };
1345 : LONG_LITERAL { $value = LiteralTools.parseLong($LONG_LITERAL.text); };
1348 : SHORT_LITERAL { $value = LiteralTools.parseShort($SHORT_LITERAL.text); };
1351 : BYTE_LITERAL { $value = LiteralTools.parseByte($BYTE_LITERAL.text); };
[all …]
DsmaliParser.g662 : integer_literal { $value = LiteralTools.parseInt($integer_literal.text); };
/external/smali/smali/src/main/java/org/jf/smali/
DLiteralTools.java34 public class LiteralTools class
DsmaliTreeWalker.java1861 LiteralTools.checkInt(long_literal58); value = (int)long_literal58; in fixed_32bit_literal()
5243 LiteralTools.checkNibble(litB); in insn_format11n()
5867 LiteralTools.checkByte(litC); in insn_format22b()
7292 LiteralTools.checkShort(long_literal215); in short_integral_literal()
7305 LiteralTools.checkShort(integer_literal216); in short_integral_literal()
7405 LiteralTools.checkInt(long_literal220); in integral_literal()
7469 value = LiteralTools.parseInt((INTEGER_LITERAL224!=null?INTEGER_LITERAL224.getText():null)); in integer_literal()
7499 value = LiteralTools.parseLong((LONG_LITERAL225!=null?LONG_LITERAL225.getText():null)); in long_literal()
7529 value = LiteralTools.parseShort((SHORT_LITERAL226!=null?SHORT_LITERAL226.getText():null)); in short_literal()
7559 value = LiteralTools.parseByte((BYTE_LITERAL227!=null?BYTE_LITERAL227.getText():null)); in byte_literal()
[all …]
DsmaliParser.java5677 …retval.value = LiteralTools.parseInt((integer_literal133!=null?input.toString(integer_literal133.s… in parsed_integer_literal()