Enum | Description |
---|---|
ConversionCategory |
Elements of this enumeration are used in a
Format annotation
to indicate the valid types that may be passed as a format parameter. |
Annotation Type | Description |
---|---|
Format |
This annotation, attached to a String type,
indicates that the String may be passed to
Formatter.format and
similar methods. |
FormatBottom |
Represents the bottom of the Format String type hierarchy.
|
FormatMethod |
If this annotation is attached to a
Formatter.format like
method, the framework checks that the parameters passed as var-args are
compatible with the format string. |
InvalidFormat |
This annotation, attached to a
String type,
indicates that the string is not a legal format string. |
ReturnsFormat |
Attach this annotation to a method with the following properties:
The first parameter is a format string.
The second parameter is a vararg that takes conversion categories.
The method throws an exception if the format string's
format specifiers do not match the passed conversion categories.
On success, the method returns the passed format string unmodified.
|
UnknownFormat |
The top qualifier.
|