Move ConfigDocument and ConfigNode into a "parser" package

This should cut down on people wasting time on these when they
are looking for the regular config API; they are for a narrower
use-case.
This commit is contained in:
Havoc Pennington 2015-03-30 09:40:59 -04:00
parent 2af0b42ad9
commit 2d83b1fb6b
7 changed files with 12 additions and 5 deletions

View File

@ -3,7 +3,7 @@
*/
package com.typesafe.config.impl;
import com.typesafe.config.ConfigNode;
import com.typesafe.config.parser.ConfigNode;
import java.util.Collection;
abstract class AbstractConfigNode implements ConfigNode {

View File

@ -22,6 +22,7 @@ import java.net.URLConnection;
import java.util.*;
import com.typesafe.config.*;
import com.typesafe.config.parser.*;
/**
* Internal implementation detail, not ABI stable, do not touch.

View File

@ -1,6 +1,6 @@
package com.typesafe.config.impl;
import com.typesafe.config.ConfigDocument;
import com.typesafe.config.parser.ConfigDocument;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigParseOptions;
import com.typesafe.config.ConfigValue;

View File

@ -1,4 +1,7 @@
package com.typesafe.config;
package com.typesafe.config.parser;
import com.typesafe.config.ConfigParseOptions;
import com.typesafe.config.ConfigValue;
/**
* An object parsed from the original input text, which can be used to

View File

@ -1,4 +1,6 @@
package com.typesafe.config;
package com.typesafe.config.parser;
import com.typesafe.config.ConfigParseOptions;
import com.typesafe.config.impl.ConfigImpl;
import com.typesafe.config.impl.Parseable;

View File

@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
package com.typesafe.config.parser;
/**
* An immutable node that makes up the ConfigDocument AST, and which can be

View File

@ -5,6 +5,7 @@ import java.nio.charset.StandardCharsets
import java.nio.file.{ Paths, Files }
import com.typesafe.config._
import com.typesafe.config.parser._
import org.junit.Assert._
import org.junit.Test