Interface ConfigurationPath.ConfigurationSegment

All Superinterfaces:
CharSequence
Enclosing interface:
ConfigurationPath

public static sealed interface ConfigurationPath.ConfigurationSegment extends CharSequence
A segment of configuration.
  • Method Details

    • prefix

      String prefix()
      Returns:
      The prefix
    • path

      String path()
      Returns:
      The raw path
    • kind

      Returns:
      Whether it is a list or map binding
    • name

      @Nullable String name()
      Returns:
      This name (if any)
    • simpleName

      @Nullable String simpleName()
      Returns:
      The unqualified name.
    • primary

      @Nullable String primary()
      Returns:
      The primary name (if any)
    • type

      @NonNull Class<?> type()
      Returns:
      The configuration type
    • index

      int index()
      The current index.
      Returns:
      -1 if there is no index