T - the parsed number typepublic interface NumberParser<T extends java.lang.Number> extends PrimitiveParser<T>
Node into a number of type T.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INFINITY_SYMBOL_A |
static java.lang.String |
INFINITY_SYMBOL_B |
static java.lang.String |
NEGATIVE_INFINITY_SYMBOL_A |
static java.lang.String |
NEGATIVE_INFINITY_SYMBOL_B |
static java.lang.String |
POSITIVE_INFINITY_SYMBOL_A |
static java.lang.String |
POSITIVE_INFINITY_SYMBOL_B |
| Modifier and Type | Method and Description |
|---|---|
T |
finite(@NonNull Node node,
@NonNull java.lang.String string)
|
T |
negativeInfinity(@NonNull Node node,
@NonNull java.lang.String string)
|
T |
positiveInfinity(@NonNull Node node,
@NonNull java.lang.String string)
|
default T |
throwingParse(@NonNull Node node,
@NonNull java.lang.String string)
|
throwingParsestatic final java.lang.String INFINITY_SYMBOL_A
static final java.lang.String INFINITY_SYMBOL_B
static final java.lang.String NEGATIVE_INFINITY_SYMBOL_A
static final java.lang.String NEGATIVE_INFINITY_SYMBOL_B
static final java.lang.String POSITIVE_INFINITY_SYMBOL_A
static final java.lang.String POSITIVE_INFINITY_SYMBOL_B
default T throwingParse(@NonNull Node node, @NonNull java.lang.String string) throws XMLException
PrimitiveParserthrowingParse in interface PrimitiveParser<T extends java.lang.Number>node - the nodestring - the node valueXMLException - if an exception occurred while parsingT negativeInfinity(@NonNull Node node, @NonNull java.lang.String string) throws XMLException
node - the nodestring - the node valueXMLException - if an exception occurred while parsingT finite(@NonNull Node node, @NonNull java.lang.String string) throws XMLException
node - the nodestring - the node valueXMLException - if an exception occurred while parsingT positiveInfinity(@NonNull Node node, @NonNull java.lang.String string) throws XMLException
node - the nodestring - the node valueXMLException - if an exception occurred while parsing