Examples of origin()


Examples of com.crashnote.core.config.helper.ConfigList.origin()

            break;
        case LIST:
            final ConfigList list = (ConfigList) value;
            out.writeInt(list.size());
            for (final ConfigValue v : list) {
                writeValue(out, v, (SimpleConfigOrigin) list.origin());
            }
            break;
        case OBJECT:
            final ConfigObject obj = (ConfigObject) value;
            out.writeInt(obj.size());
View Full Code Here

Examples of com.crashnote.core.config.helper.ConfigObject.origin()

        case OBJECT:
            final ConfigObject obj = (ConfigObject) value;
            out.writeInt(obj.size());
            for (final Map.Entry<String, ConfigValue> e : obj.entrySet()) {
                out.writeUTF(e.getKey());
                writeValue(out, e.getValue(), (SimpleConfigOrigin) obj.origin());
            }
            break;
        }
    }
View Full Code Here

Examples of com.crashnote.core.config.helper.ConfigValue.origin()

        try {
            size = getLong(path);
        } catch (ConfigException.WrongType e) {
            final ConfigValue v = find(path, ConfigValueType.STRING);
            size = parseBytes((String) v.unwrapped(),
                    v.origin(), path);
        }
        return size;
    }

    @Override
View Full Code Here

Examples of com.crashnote.external.config.ConfigList.origin()

            break;
        case LIST:
            final ConfigList list = (ConfigList) value;
            out.writeInt(list.size());
            for (final ConfigValue v : list) {
                writeValue(out, v, (SimpleConfigOrigin) list.origin());
            }
            break;
        case OBJECT:
            final ConfigObject obj = (ConfigObject) value;
            out.writeInt(obj.size());
View Full Code Here

Examples of com.crashnote.external.config.ConfigObject.origin()

        case OBJECT:
            final ConfigObject obj = (ConfigObject) value;
            out.writeInt(obj.size());
            for (final Map.Entry<String, ConfigValue> e : obj.entrySet()) {
                out.writeUTF(e.getKey());
                writeValue(out, e.getValue(), (SimpleConfigOrigin) obj.origin());
            }
            break;
        }
    }
View Full Code Here

Examples of com.crashnote.external.config.ConfigValue.origin()

        try {
            size = getLong(path);
        } catch (ConfigException.WrongType e) {
            final ConfigValue v = find(path, ConfigValueType.STRING);
            size = parseBytes((String) v.unwrapped(),
                    v.origin(), path);
        }
        return size;
    }

    @Override
View Full Code Here

Examples of com.typesafe.config.ConfigList.origin()

            } else {
                listObject = expandSugar(elementType, listEntry, pluginRegistry);
            }
            newList.add(listObject.unwrapped());
        }
        return ConfigValueFactory.fromIterable(newList, fieldList.origin().description());
    }

    private static Class<?> elementType(CodableFieldInfo fieldInfo) {
        Class<?> elementType = fieldInfo.getTypeOrComponentType();
        if (fieldInfo.isMap()) {
View Full Code Here

Examples of com.typesafe.config.ConfigList.origin()

            } else {
                listObject = expandSugar(elementType, listEntry, codec);
            }
            newList.add(listObject.unwrapped());
        }
        return ConfigValueFactory.fromIterable(newList, fieldList.origin().description());
    }

    private static Class<?> elementType(CodableFieldInfo fieldInfo) {
        Class<?> elementType = fieldInfo.getType();
        if (fieldInfo.isMap()) {
View Full Code Here

Examples of com.typesafe.config.ConfigList.origin()

            } else {
                listObject = expandSugar(elementType, listEntry, codec);
            }
            newList.add(listObject.unwrapped());
        }
        return ConfigValueFactory.fromIterable(newList, fieldList.origin().description());
    }

    private static Class<?> elementType(CodableFieldInfo fieldInfo) {
        Class<?> elementType = fieldInfo.getTypeOrComponentType();
        if (fieldInfo.isMap()) {
View Full Code Here

Examples of com.typesafe.config.ConfigObject.origin()

                    } else {
                        resolvedMapObject = expandSugar(elementType, mapValue, pluginRegistry);
                    }
                    newMap.put(mapKey, resolvedMapObject.unwrapped());
                }
                fieldValue = ConfigValueFactory.fromMap(newMap, fieldMap.origin().description());
            } else {
                fieldValue = expandSugar(fieldInfo.getTypeOrComponentType(), fieldValue, pluginRegistry);
            }
            root = root.withValue(fieldName, fieldValue);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.