Class ConstructYamlCoreInt
java.lang.Object
org.snakeyaml.engine.v2.constructor.ConstructScalar
org.snakeyaml.engine.v2.constructor.core.ConstructYamlCoreInt
- All Implemented Interfaces:
ConstructNode
Create instances for numbers (Integer, Long, BigInteger)
-
Field Summary
FieldsFields inherited from class org.snakeyaml.engine.v2.constructor.ConstructScalar
BOOL_VALUES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstruct a Java instance with all the properties injected when it is possible.createIntNumber
(String value) protected static Number
createLongOrBigInteger
(String number, int radix) private Number
createNumber
(int sign, String number, int radix) private static int
maxLen
(int max, int radix) private static int
maxLen
(long max, int radix) Methods inherited from class org.snakeyaml.engine.v2.constructor.ConstructScalar
constructScalar
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.snakeyaml.engine.v2.api.ConstructNode
constructRecursive
-
Field Details
-
RADIX_MAX
private static final int[][] RADIX_MAX
-
-
Constructor Details
-
ConstructYamlCoreInt
public ConstructYamlCoreInt()
-
-
Method Details
-
maxLen
private static int maxLen(int max, int radix) -
maxLen
private static int maxLen(long max, int radix) -
createLongOrBigInteger
-
construct
Description copied from interface:ConstructNode
Construct a Java instance with all the properties injected when it is possible.- Parameters:
node
- composed Node- Returns:
- a complete Java instance or empty collection instance if it is recursive
-
createIntNumber
-
createNumber
-