@Test public void testIsHexLiteral() { Assert.assertTrue(NumericLiteralSupport.isHexLiteral("p\u0000p")); Assert.assertTrue(NumericLiteralSupport.isHexLiteral("P\u0000P")); Assert.assertFalse(NumericLiteralSupport.isHexLiteral("1")); }
public static boolean isHexLiteral(String numericLiteral) { for (int i = 0; i < numericLiteral.length(); i++) { char c = numericLiteral.charAt(i); if (c == 'p' || c == 'P') { return true; } } return false; }
NumericLiteralSupport { public static boolean isHexLiteral(String numericLiteral) { for (int i = 0; i < numericLiteral.length(); i++) { char c = numericLiteral.charAt(i); if (c == 'p' || c == 'P') { return true; } } return false; } }
NumericLiteralSupport { public static boolean isHexLiteral(String numericLiteral) { for (int i = 0; i < numericLiteral.length(); i++) { char c = numericLiteral.charAt(i); if (c == 'p' || c == 'P') { return true; } } return false; } private  NumericLiteralSupport(); }
NumericLiteralSupport { public static boolean isHexLiteral(String numericLiteral) { for (int i = 0; i < numericLiteral.length(); i++) { char c = numericLiteral.charAt(i); if (c == 'p' || c == 'P') { return true; } } return false; } private  NumericLiteralSupport(); static String stripDiscriminator(String literalValue); static boolean isHexLiteral(String numericLiteral); static boolean hasHexIndicator(String literalValue); static BigDecimal parseBigDecimal(Object baseValue); static boolean isDecimalDiscriminated(String literalValue); static boolean isFloatDiscriminated(String literalValue); }
NumericLiteralSupport { public static boolean isHexLiteral(String numericLiteral) { for (int i = 0; i < numericLiteral.length(); i++) { char c = numericLiteral.charAt(i); if (c == 'p' || c == 'P') { return true; } } return false; } private  NumericLiteralSupport(); static String stripDiscriminator(String literalValue); static boolean isHexLiteral(String numericLiteral); static boolean hasHexIndicator(String literalValue); static BigDecimal parseBigDecimal(Object baseValue); static boolean isDecimalDiscriminated(String literalValue); static boolean isFloatDiscriminated(String literalValue); static final String FLOAT_DISCRIMINATOR; static final String DECIMAL_DISCRIMINATOR; }