Class ConstructYamlCoreInt
- java.lang.Object
-
- org.snakeyaml.engine.v2.constructor.ConstructScalar
-
- org.snakeyaml.engine.v2.constructor.core.ConstructYamlCoreInt
-
- All Implemented Interfaces:
ConstructNode
public class ConstructYamlCoreInt extends ConstructScalar
Create instances for numbers (Integer, Long, BigInteger)
-
-
Field Summary
Fields Modifier and Type Field Description private static int[][]RADIX_MAX-
Fields inherited from class org.snakeyaml.engine.v2.constructor.ConstructScalar
BOOL_VALUES
-
-
Constructor Summary
Constructors Constructor Description ConstructYamlCoreInt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectconstruct(Node node)Construct a Java instance with all the properties injected when it is possible.java.lang.ObjectcreateIntNumber(java.lang.String value)protected static java.lang.NumbercreateLongOrBigInteger(java.lang.String number, int radix)private java.lang.NumbercreateNumber(int sign, java.lang.String number, int radix)private static intmaxLen(int max, int radix)private static intmaxLen(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
-
-
-
-
Method Detail
-
maxLen
private static int maxLen(int max, int radix)
-
maxLen
private static int maxLen(long max, int radix)
-
createLongOrBigInteger
protected static java.lang.Number createLongOrBigInteger(java.lang.String number, int radix)
-
construct
public java.lang.Object construct(Node node)
Description copied from interface:ConstructNodeConstruct 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
public java.lang.Object createIntNumber(java.lang.String value)
-
createNumber
private java.lang.Number createNumber(int sign, java.lang.String number, int radix)
-
-