- All Superinterfaces:
Type
- Enclosing interface:
Type
An array type. Array types feature an element type and an optional size. As such they can also be used to
model array types.
-
Nested Class Summary
Nested classes/interfaces declared in interface jdk.incubator.jextract.Type
Type.Array, Type.Declared, Type.Delegated, Type.Function, Type.Primitive, Type.Visitor<R,
P> -
Method Summary
Modifier and TypeMethodDescriptionThe (optional) array element count.The array type element type.kind()
The array type kind.Methods declared in interface jdk.incubator.jextract.Type
accept, equals, hashCode, isErroneous
-
Method Details
-
kind
Type.Array.Kind kind()The array type kind.- Returns:
- The array type kind.
-
elementCount
OptionalLong elementCount()The (optional) array element count.- Implementation Requirements:
- an element count is present if the array type kind is one of
Type.Array.Kind.VECTOR
,Type.Array.Kind.ARRAY
. - Returns:
- The (optional) array element count.
-
elementType
Type elementType()The array type element type.- Returns:
- The array type element type.
-