@Test public void integerValues() { assertThat(integerLiteral("0123").getIntegerValue().intValue()).isEqualTo(83); assertThat(integerLiteral("0o123").getIntegerValue().intValue()).isEqualTo(83); assertThat(integerLiteral("0O123").getIntegerValue().intValue()).isEqualTo(83); assertThat(integerLiteral("0O00123").getIntegerValue().intValue()).isEqualTo(83); assertThat(integerLiteral("123").getIntegerValue().intValue()).isEqualTo(123); assertThat(integerLiteral("0d123").getIntegerValue().intValue()).isEqualTo(123); assertThat(integerLiteral("0D123").getIntegerValue().intValue()).isEqualTo(123); assertThat(integerLiteral("0x123").getIntegerValue().intValue()).isEqualTo(291); assertThat(integerLiteral("0X123").getIntegerValue().intValue()).isEqualTo(291); assertThat(integerLiteral("0b101").getIntegerValue().intValue()).isEqualTo(5); assertThat(integerLiteral("0B101").getIntegerValue().intValue()).isEqualTo(5); }
@Override public BigInteger getIntegerValue() { return new BigInteger(numericPart, base.getRadix()); }
IntegerLiteralTreeImpl extends LiteralTreeImpl implements IntegerLiteralTree { @Override public BigInteger getIntegerValue() { return new BigInteger(numericPart, base.getRadix()); } }
IntegerLiteralTreeImpl extends LiteralTreeImpl implements IntegerLiteralTree { @Override public BigInteger getIntegerValue() { return new BigInteger(numericPart, base.getRadix()); } IntegerLiteralTreeImpl(TreeMetaData metaData, String stringValue); }
IntegerLiteralTreeImpl extends LiteralTreeImpl implements IntegerLiteralTree { @Override public BigInteger getIntegerValue() { return new BigInteger(numericPart, base.getRadix()); } IntegerLiteralTreeImpl(TreeMetaData metaData, String stringValue); @Override Base getBase(); @Override BigInteger getIntegerValue(); @Override String getNumericPart(); }
IntegerLiteralTreeImpl extends LiteralTreeImpl implements IntegerLiteralTree { @Override public BigInteger getIntegerValue() { return new BigInteger(numericPart, base.getRadix()); } IntegerLiteralTreeImpl(TreeMetaData metaData, String stringValue); @Override Base getBase(); @Override BigInteger getIntegerValue(); @Override String getNumericPart();  }