Class NativeTypes.NumberRepresentation

  • Enclosing class:
    NativeTypes

    private abstract static class NativeTypes.NumberRepresentation
    extends java.lang.Object
    • Field Detail

      • radix

        int radix
      • val

        java.lang.String val
      • isIntegralType

        boolean isIntegralType
      • isLong

        boolean isLong
      • isFloat

        boolean isFloat
    • Constructor Detail

      • NumberRepresentation

        NumberRepresentation​(java.lang.String in,
                             boolean isIntegralType,
                             boolean isLong,
                             boolean isFloat)
    • Method Detail

      • parse

        abstract void parse​(java.lang.String val,
                            int radix)
      • validate

        void validate()
      • strip

        void strip()
      • removeAndValidateIntegerLiteralUnderscore

        void removeAndValidateIntegerLiteralUnderscore()
        remove java7+ underscores from the input
      • removeAndValidateFloatingPointLiteralUnderscore

        void removeAndValidateFloatingPointLiteralUnderscore()
        remove java7+ underscores from the input
      • removeAndValidateIntegerLiteralSuffix

        void removeAndValidateIntegerLiteralSuffix()
      • removeAndValidateFloatingPointLiteralSuffix

        void removeAndValidateFloatingPointLiteralSuffix()
        Double suffix forbidden for float.
      • floatHasBecomeZero

        boolean floatHasBecomeZero​(float parsed)
      • doubleHasBecomeZero

        boolean doubleHasBecomeZero​(double parsed)
      • floatHasBecomeZero

        private boolean floatHasBecomeZero()