Class ConfigurationNodeExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean contains(ConfigurationNode $self, Array<Object> path) An implementation of contains that can traverse multiple levels in path.
      final static Boolean contains(ConfigurationNode $self, NodePath path) An implementation of contains that can traverse multiple levels in path.
      final static Boolean contains(ConfigurationNode $self, Object path) Contains for a single level.
      final static <V extends Any> V get(ConfigurationNode $self) Get a value from the receiver using the type parameter.
      final static <V extends Any> V get(ConfigurationNode $self, V default) Get a value from the receiver using the type parameter.
      final static <T extends Any> T get(ConfigurationNode $self, KClass<T> type) Get a value from the receiver using the type parameter.
      final static <T extends Any> T get(ConfigurationNode $self, KClass<T> type, T default) Get a value from the receiver using the type parameter.
      final static <T extends Any> T get(ConfigurationNode $self, KClass<T> type, Function0<T> default) Get a value from the receiver using the type parameter.
      final static <V extends Any> V get(ConfigurationNode $self, Function0<V> default) Get a value from the receiver using the type parameter.
      final static <V extends Any> Unit typedSet(ConfigurationNode $self, V value) Set a value from the receiver using the type parameter to resolve a serializer.
      final static <T extends Any> List<T> getList(ConfigurationNode $self, KClass<T> type) Get a list value from the receiver using a Kotlin type.
      final static <T extends Any> List<T> getList(ConfigurationNode $self, KClass<T> type, List<T> default) Get a list value from the receiver using a Kotlin type.
      final static <T extends Any> ConfigurationNode set(ConfigurationNode $self, KClass<T> type, T value) Set a value on the receiver described by a kotlin class.
      final static <T extends Any, N extends ScopedConfigurationNode<N>> N set(N $self, KClass<T> type, T value) Set a value on the receiver described by a kotlin class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • contains

         final static Boolean contains(ConfigurationNode $self, Array<Object> path)

        An implementation of contains that can traverse multiple levels in path.

      • contains

         final static Boolean contains(ConfigurationNode $self, NodePath path)

        An implementation of contains that can traverse multiple levels in path.

      • contains

         final static Boolean contains(ConfigurationNode $self, Object path)

        Contains for a single level.

        Parameters:
        path - a single path element
      • get

         final static <V extends Any> V get(ConfigurationNode $self)

        Get a value from the receiver using the type parameter.

      • get

         final static <V extends Any> V get(ConfigurationNode $self, V default)

        Get a value from the receiver using the type parameter.

      • get

         final static <T extends Any> T get(ConfigurationNode $self, KClass<T> type)

        Get a value from the receiver using the type parameter.

      • get

         final static <T extends Any> T get(ConfigurationNode $self, KClass<T> type, T default)

        Get a value from the receiver using the type parameter.

      • get

         final static <T extends Any> T get(ConfigurationNode $self, KClass<T> type, Function0<T> default)

        Get a value from the receiver using the type parameter.

      • get

         final static <V extends Any> V get(ConfigurationNode $self, Function0<V> default)

        Get a value from the receiver using the type parameter.

      • typedSet

         final static <V extends Any> Unit typedSet(ConfigurationNode $self, V value)

        Set a value from the receiver using the type parameter to resolve a serializer.

      • getList

         final static <T extends Any> List<T> getList(ConfigurationNode $self, KClass<T> type)

        Get a list value from the receiver using a Kotlin type.

      • getList

         final static <T extends Any> List<T> getList(ConfigurationNode $self, KClass<T> type, List<T> default)

        Get a list value from the receiver using a Kotlin type.

      • set

         final static <T extends Any> ConfigurationNode set(ConfigurationNode $self, KClass<T> type, T value)

        Set a value on the receiver described by a kotlin class.

      • set

         final static <T extends Any, N extends ScopedConfigurationNode<N>> N set(N $self, KClass<T> type, T value)

        Set a value on the receiver described by a kotlin class.