Package sting.processor
Interface BindingValueModel
public interface BindingValueModel
Compile-time scalar value from an interceptor binding annotation member.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the fully qualified class name for class-valued members.Return the enum constant name for enum-valued members.Return the fully qualified enum type name for enum-valued members.Return a Java source literal for the value.kind()Return the value kind.name()Return the annotation member name.Return the boxed scalar value for primitive and string kinds.
-
Method Details
-
name
Return the annotation member name.- Returns:
- the annotation member name.
-
kind
Return the value kind.- Returns:
- the value kind.
-
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
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
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
Return a Java source literal for the value.- Returns:
- a Java source literal for supported values.
- Throws:
IllegalStateException- if the value kind is unsupported.
-