Class ConstructYamlJsonInt
- java.lang.Object
-
- org.snakeyaml.engine.v2.constructor.ConstructScalar
-
- org.snakeyaml.engine.v2.constructor.json.ConstructYamlJsonInt
-
- All Implemented Interfaces:
ConstructNode
public class ConstructYamlJsonInt extends ConstructScalar
Create instances for numbers (Integer, Long, BigInteger)
-
-
Field Summary
-
Fields inherited from class org.snakeyaml.engine.v2.constructor.ConstructScalar
BOOL_VALUES
-
-
Constructor Summary
Constructors Constructor Description ConstructYamlJsonInt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
construct(Node node)
Construct a Java instance with all the properties injected when it is possible.protected java.lang.Number
createIntNumber(java.lang.String number)
Create number trying fist Integer, then Long, then BigInteger-
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
-
construct
public java.lang.Object construct(Node node)
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
protected java.lang.Number createIntNumber(java.lang.String number)
Create number trying fist Integer, then Long, then BigInteger- Parameters:
number
- - the source- Returns:
- number that fits the source
-
-