com.fasterxml.jackson.jr.private_.io.doubleparser.package-info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-jr-all Show documentation
Show all versions of jackson-jr-all Show documentation
"Uber" jar that contains all Jackson jr components as well as underlying Jackson core
Streaming, in a single jar.
/**
* References:
*
* - This class has been derived from "FastDoubleParser".
* - Copyright (c) Werner Randelshofer. Apache 2.0 License.
* github.com.
*
*/
/**
* Provides parsers that parse a {@code FloatingPointLiteral} from a
* {@link java.lang.CharSequence}, {@code char} array, or {@code byte} array
* ({@code str});.
*
* Leading and trailing whitespace characters in {@code str} are ignored.
* Whitespace is removed as if by the {@link java.lang.String#trim()} method;
* that is, characters in the range [U+0000,U+0020].
*
* The rest of {@code str} should constitute a {@code FloatingPointLiteral} as described
* by the lexical syntax rules shown below:
*
*
* - FloatingPointLiteral:
* - [Sign] {@code NaN}
* - [Sign] {@code Infinity}
* - [Sign] DecimalFloatingPointLiteral
* - [Sign] HexFloatingPointLiteral
* - SignedInteger
*
*
*
* - HexFloatingPointLiteral:
*
- HexSignificand BinaryExponent [FloatTypeSuffix]
*
*
*
* - HexSignificand:
*
- HexNumeral
*
- HexNumeral {@code .}
*
- {@code 0x} [HexDigits] {@code .} HexDigits
*
- {@code 0X} [HexDigits] {@code .} HexDigits
*
*
*
* - BinaryExponent:
*
- BinaryExponentIndicator SignedInteger
*
*
*
* - BinaryExponentIndicator:
*
- {@code p}
*
- {@code P}
*
*
*
* - DecimalFloatingPointLiteral:
*
- DecSignificand [DecExponent] [FloatTypeSuffix]
*
*
*
* - DecSignificand:
*
- Digits {@code .} [Digits]
*
- {@code .} Digits
*
- Digits
*
*
*
* - DecExponent:
*
- ExponentIndicator SignedInteger
*
*
*
* - ExponentIndicator:
*
- (one of)
*
- e E
*
*
*
* - SignedInteger:
*
- [Sign] Digits
*
*
*
* - Sign:
*
- (one of)
*
- + -
*
*
*
* - Digits:
*
- Digit {Digit}
*
*
*
* - HexNumeral:
*
- {@code 0} {@code x} HexDigits
*
- {@code 0} {@code X} HexDigits
*
*
*
* - HexDigits:
*
- HexDigit {HexDigit}
*
*
*
* - HexDigit:
*
- (one of)
*
- {@code 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F}
*
*
*
* - FloatTypeSuffix:
*
- (one of)
*
- {@code f F d D}
*
*
*
* References:
*
* - The Java® Language Specification, Java SE 18 Edition, Chapter 3. Lexical Structure, 3.10.2. Floating-Point Literals
* - docs.oracle.com
*
*/
package com.fasterxml.jackson.core.io.doubleparser;
© 2015 - 2024 Weber Informatics LLC | Privacy Policy