|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface Unboxed
The Unboxed annotation marks a type as unboxed. Besides the primitive types, all Java values
are boxed types. Conceptually, they are represented by a pointer to a heap object. However,
an unboxed type is represented by the value itself. All methods on an unboxed type are
Intrinsic
s.
As an unboxed type is not a regular java object there are a few constraints on the way unboxed types are handled;
Intrinsic
and thus there can be no virtual methods.NOTE: At the current time the Unboxed annotation is only used for documentation purposes but in the near future it is expected that the semantics of the annotation will be enforced by the compiler.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |