@Retention(value=RUNTIME) @Target(value=FIELD) public static @interface CompilerDirectives.CompilationFinal
| Modifier and Type | Optional Element and Description |
|---|---|
int |
dimensions
Specifies the number of array dimensions to be marked as compilation final.
|
public abstract int dimensions
dimensions value of 0 marks only the reference to the (outermost)
array as final but not its elements, a value of 1 marks the outermost array and all its
elements as final but not the elements of any nested arrays.
For compatibility reasons, array-typed fields without an explicit dimensions
parameter default to the number of array dimensions declared in the field type.