Package org.yaml.snakeyaml.constructor
Class SafeConstructor
java.lang.Object
org.yaml.snakeyaml.constructor.BaseConstructor
org.yaml.snakeyaml.constructor.SafeConstructor
- Direct Known Subclasses:
Constructor
Construct standard Java classes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classclassclassclassclassclassclassclassclassclassclassclassstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[][]private static final Patternstatic final SafeConstructor.ConstructUndefinedprivate static final PatternFields inherited from class org.yaml.snakeyaml.constructor.BaseConstructor
composer, constructedObjects, loadingConfig, NOT_INSTANTIATED_OBJECT, rootTag, typeDefinitions, typeTags, yamlClassConstructors, yamlConstructors, yamlMultiConstructors -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconstructMapping2ndStep(MappingNode node, Map<Object, Object> mapping) Fill provided Map with constructed dataprotected voidconstructSet2ndStep(MappingNode node, Set<Object> set) protected static NumbercreateLongOrBigInteger(String number, int radix) private NumbercreateNumber(int sign, String number, int radix) protected voidflattenMapping(MappingNode node) protected voidflattenMapping(MappingNode node, boolean forceStringKeys) private static intmaxLen(int max, int radix) private static intmaxLen(long max, int radix) mergeNode(MappingNode node, boolean isPreffered, Map<Object, Integer> key2index, List<NodeTuple> values, boolean forceStringKeys) Does merge for supplied mapping node.protected voidprotected voidprocessDuplicateKeys(MappingNode node, boolean forceStringKeys) Methods inherited from class org.yaml.snakeyaml.constructor.BaseConstructor
addTypeDescription, checkData, constructArray, constructArrayStep2, constructDocument, constructMapping, constructObject, constructObjectNoCheck, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSet, createArray, createDefaultList, createDefaultMap, createDefaultSet, finalizeConstruction, getConstructor, getData, getPropertyUtils, getSingleData, isAllowDuplicateKeys, isEnumCaseSensitive, isExplicitPropertyUtils, isWrappedToRootException, newInstance, newInstance, newInstance, newList, newMap, newSet, postponeMapFilling, postponeSetFilling, setAllowDuplicateKeys, setComposer, setEnumCaseSensitive, setPropertyUtils, setWrappedToRootException
-
Field Details
-
undefinedConstructor
-
BOOL_VALUES
-
RADIX_MAX
private static final int[][] RADIX_MAX -
TIMESTAMP_REGEXP
-
YMD_REGEXP
-
-
Constructor Details
-
SafeConstructor
Deprecated.use options -
SafeConstructor
-
-
Method Details
-
flattenMapping
-
flattenMapping
-
processDuplicateKeys
-
processDuplicateKeys
-
mergeNode
private List<NodeTuple> mergeNode(MappingNode node, boolean isPreffered, Map<Object, Integer> key2index, List<NodeTuple> values, boolean forceStringKeys) Does merge for supplied mapping node.- Parameters:
node- where to mergeisPreffered- true if keys of node should take precedence over others...key2index- maps already merged keys to index from valuesvalues- collects merged NodeTuple- Returns:
- list of the merged NodeTuple (to be set as value for the MappingNode)
-
constructMapping2ndStep
Description copied from class:BaseConstructorFill provided Map with constructed data- Overrides:
constructMapping2ndStepin classBaseConstructor- Parameters:
node- - sourcemapping- - map to fill
-
constructSet2ndStep
- Overrides:
constructSet2ndStepin classBaseConstructor
-
maxLen
private static int maxLen(int max, int radix) -
maxLen
private static int maxLen(long max, int radix) -
createNumber
-
createLongOrBigInteger
-