Top Description Inners Fields Constructors Methods
com.typesafe.config.impl

public abstract Class Parseable

extends Object
implements ConfigParseable
Class Inheritance
All Implemented Interfaces
com.typesafe.config.ConfigParseable
Known Direct Subclasses
com.typesafe.config.impl.Parseable.ParseableNotFound, com.typesafe.config.impl.Parseable.ParseableReader, com.typesafe.config.impl.Parseable.ParseableString, com.typesafe.config.impl.Parseable.ParseableURL, com.typesafe.config.impl.Parseable.ParseableFile, com.typesafe.config.impl.Parseable.ParseableResources, com.typesafe.config.impl.Parseable.ParseableProperties
Imports
java.io.BufferedReader, .File, .FileInputStream, .FileNotFoundException, .FilterReader, .IOException, .InputStream, .InputStreamReader, .Reader, .StringReader, .UnsupportedEncodingException, java.net.MalformedURLException, .URI, .URISyntaxException, .URL, .URLConnection, java.util.*, com.typesafe.config.*, com.typesafe.config.parser.*

Internal implementation detail, not ABI stable, do not touch. For use only by the com.typesafe.config package. The point of this class is to avoid "propagating" each overload on "thing which can be parsed" through multiple interfaces. Most interfaces can have just one overload that takes a Parseable. Also it's used as an abstract "resource handle" in the ConfigIncluder interface.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
protected static interface
Parseable.Relativizer

Internal implementation detail, not ABI stable, do not touch.

Field Summary

Modifier and TypeField and Description
private static final String
private ConfigIncludeContext
private ConfigParseOptions
private ConfigOrigin
private static final String
private static final int
private static final ThreadLocal<LinkedList<Parseable>>
private static final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv ConfigSyntax
private static String
convertResourceName(Class<?> klass, String resource)

protected abstract ConfigOrigin
private static Reader
private ConfigParseOptions
pack-priv static AbstractConfigObject
pack-priv ConfigSyntax
pack-priv ConfigIncludeContext
public static Parseable
public static Parseable
newNotFound(String whatNotFound, String message, ConfigParseOptions options)

public static Parseable
public static Parseable
public static Parseable
newResources(Class<?> klass, String resource, ConfigParseOptions options)

public static Parseable
private static Parseable
newResourceURL(URL input, ConfigParseOptions options, String resource, Parseable.Relativizer relativizer)

public static Parseable
public static Parseable
newURL(URL input, ConfigParseOptions options)

public ConfigParseOptions
options()

Implements com.typesafe.config.ConfigParseable.options.

Get the initial options, which can be modified then passed to parse().

public final ConfigOrigin
origin()

Implements com.typesafe.config.ConfigParseable.origin.

Returns a ConfigOrigin describing the origin of the parseable item.

public ConfigObject
parse(ConfigParseOptions
parse options, should be based on the ones from options()
baseOptions
)

Implements com.typesafe.config.ConfigParseable.parse.

Parse whatever it is.

public ConfigObject
public ConfigDocument
pack-priv final ConfigDocument
private final ConfigDocument
pack-priv final AbstractConfigValue
private final AbstractConfigValue
pack-priv AbstractConfigValue
protected void
protected ConfigDocument
private ConfigDocument
protected AbstractConfigValue
private AbstractConfigValue
rawParseValue(Reader reader, ConfigOrigin origin, ConfigParseOptions finalOptions)

protected abstract Reader
protected Reader
private static Reader
private static Reader
pack-priv ConfigParseable
relativeTo(String filename)

pack-priv static URL
relativeTo(URL url, String filename)

pack-priv static File
relativeTo(File file, String filename)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

protected static void
trace(String message)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait