Class Parseable

  • All Implemented Interfaces:
    ConfigParseable

    public abstract class Parseable
    extends java.lang.Object
    implements ConfigParseable
    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.
    • Constructor Detail

      • Parseable

        protected Parseable()
    • Method Detail

      • reader

        protected abstract java.io.Reader reader()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • reader

        protected java.io.Reader reader​(ConfigParseOptions options)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • trace

        protected static void trace​(java.lang.String message)
      • rawParseValue

        protected com.typesafe.config.impl.AbstractConfigValue rawParseValue​(ConfigOrigin origin,
                                                                             ConfigParseOptions finalOptions)
                                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • createOrigin

        protected abstract ConfigOrigin createOrigin()
      • options

        public ConfigParseOptions options()
        Description copied from interface: ConfigParseable
        Get the initial options, which can be modified then passed to parse(). These options will have the right description, includer, and other parameters already set up.
        Specified by:
        options in interface ConfigParseable
        Returns:
        the initial options
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • newNotFound

        public static Parseable newNotFound​(java.lang.String whatNotFound,
                                            java.lang.String message,
                                            ConfigParseOptions options)
      • newResources

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