Interface BindingValueModel


public interface BindingValueModel
Compile-time scalar value from an interceptor binding annotation member.
  • Method Details

    • name

      @Nonnull String name()
      Return the annotation member name.
      Returns:
      the annotation member name.
    • kind

      Return the value kind.
      Returns:
      the value kind.
    • scalarValue

      @Nullable Object scalarValue()
      Return the boxed scalar value for primitive and string kinds.
      Returns:
      the boxed scalar value, or null when this value uses kind-specific metadata.
    • className

      @Nullable String className()
      Return the fully qualified class name for class-valued members.
      Returns:
      the fully qualified class name, or null when the kind is not BindingValueKind.CLASS.
    • enumTypeName

      @Nullable String enumTypeName()
      Return the fully qualified enum type name for enum-valued members.
      Returns:
      the fully qualified enum type name, or null when the kind is not BindingValueKind.ENUM.
    • enumConstantName

      Return the enum constant name for enum-valued members.
      Returns:
      the enum constant name, or null when the kind is not BindingValueKind.ENUM.
    • javaLiteral

      @Nonnull String javaLiteral()
      Return a Java source literal for the value.
      Returns:
      a Java source literal for supported values.
      Throws:
      IllegalStateException - if the value kind is unsupported.