@author Adrian Brock @version $Revision: 1.1 $
Array types are expressed in a recursive manner, one dimension at a time.
ArrayType: Type [ ]@since 2.0
The following features are supported:
In JLS8 and later, array types are represented by a base element type (which cannot be an array type) and a list of dimensions, each of which may have a list of annotations.
ArrayType: Type Dimension { Dimension }In JLS4 and before, array types were expressed in a recursive manner, one dimension at a time:
ArrayType: Type [ ]This structure became untenable with the advent of type-use annotations, because in the language model, the base type binds with array dimensions from right to left, whereas a recursive structure binds from left to right (inside out).
Example:
int @A[] @B[] @C[]
is an @A
-array of
int @B[] @C[]
, but such a component type is not representable by nested ArrayType
s with contiguous source ranges.
@since 2.0
@noinstantiate This class is not intended to be instantiated by clients.
@author Fred Toussi (fredt@users dot sourceforge.net) @version 2.0.0 @since 2.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|