@Beta public enum YangXPathMathMode extends Enum<YangXPathMathMode>
YangXPathParser
number compliance knobs. This enumeration defines what assumptions the parser can make --
affecting its optimization properties around
constant folding when number expressions are
involved.Enum Constant and Description |
---|
EXACT
All number expressions are treated as infinite-precision numbers.
|
IEEE754
All number expressions are treated as
double . |
Modifier and Type | Method and Description |
---|---|
YangXPathMathSupport |
getSupport()
Return
YangXPathMathSupport which provides support for the this mode. |
static YangXPathMathMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YangXPathMathMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YangXPathMathMode IEEE754
double
. This in spirit of XPath 1.0 -- any number expression
starts its life as a double, making all operations subject to IEEE754 rounding and range rules.public static final YangXPathMathMode EXACT
int
, long
or BigInteger
.public static YangXPathMathMode[] values()
for (YangXPathMathMode c : YangXPathMathMode.values()) System.out.println(c);
public static YangXPathMathMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic YangXPathMathSupport getSupport()
YangXPathMathSupport
which provides support for the this mode.Copyright © 2020 OpenDaylight. All rights reserved.