java.lang.annotation
6 classes of the module java.base.
Load them with:
using {
"java.lang.annotation"
}
Annotation#
interface · java.lang.annotation.Annotation
Methods
| Method | Ring call | Java overloads |
|---|---|---|
annotationType | annotationType() | Class annotationType() |
equals | equals(obj) | boolean equals(Object obj) |
hashCode | hashCode() | int hashCode() |
AnnotationFormatError#
class · extends Error · java.lang.annotation.AnnotationFormatError
Constructors
new AnnotationFormatError(String message) |
new AnnotationFormatError(Throwable cause) |
new AnnotationFormatError(String message, Throwable cause) |
Ring: new AnnotationFormatError(args) uses the constructor with the fewest parameters (at least one); new AnnotationFormatError makes the object with the constructor without parameters; the others: (new AnnotationFormatError).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Error are inherited.
AnnotationTypeMismatchException#
class · extends RuntimeException · java.lang.annotation.AnnotationTypeMismatchException
Constructors
new AnnotationTypeMismatchException(Method element, String foundType) |
Ring: new AnnotationTypeMismatchException(args) uses the constructor with the fewest parameters (at least one); new AnnotationTypeMismatchException makes the object with the constructor without parameters; the others: (new AnnotationTypeMismatchException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
element | element() | Method element() |
foundType | foundType() | String foundType() |
The methods and fields of RuntimeException are inherited.
ElementType#
enum · extends Enum · java.lang.annotation.ElementType
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TYPE | ElementType | constant · static | o.TYPE |
FIELD | ElementType | constant · static | o.FIELD |
METHOD | ElementType | constant · static | o.METHOD |
PARAMETER | ElementType | constant · static | o.PARAMETER |
CONSTRUCTOR | ElementType | constant · static | o.CONSTRUCTOR |
LOCAL_VARIABLE | ElementType | constant · static | o.LOCAL_VARIABLE |
ANNOTATION_TYPE | ElementType | constant · static | o.ANNOTATION_TYPE |
PACKAGE | ElementType | constant · static | o.@PACKAGE |
TYPE_PARAMETER | ElementType | constant · static | o.TYPE_PARAMETER |
TYPE_USE | ElementType | constant · static | o.TYPE_USE |
MODULE | ElementType | constant · static | o.MODULE |
RECORD_COMPONENT | ElementType | constant · static | o.RECORD_COMPONENT |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static ElementType valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static ElementType[] values() |
The methods and fields of Enum are inherited.
IncompleteAnnotationException#
class · extends RuntimeException · java.lang.annotation.IncompleteAnnotationException
Constructors
new IncompleteAnnotationException(Class annotationType, String elementName) |
Ring: new IncompleteAnnotationException(args) uses the constructor with the fewest parameters (at least one); new IncompleteAnnotationException makes the object with the constructor without parameters; the others: (new IncompleteAnnotationException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
annotationType | annotationType() | Class annotationType() |
elementName | elementName() | String elementName() |
The methods and fields of RuntimeException are inherited.
RetentionPolicy#
enum · extends Enum · java.lang.annotation.RetentionPolicy
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
SOURCE | RetentionPolicy | constant · static | o.SOURCE |
CLASS | RetentionPolicy | constant · static | o.@CLASS |
RUNTIME | RetentionPolicy | constant · static | o.RUNTIME |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static RetentionPolicy valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static RetentionPolicy[] values() |
The methods and fields of Enum are inherited.