public class BArrayType extends BType implements BIndexedType
BArrayType represents a type of an arrays in Ballerina.
Arrays are defined using the arrays constructor [] as follows: TypeName[]
All arrays are unbounded in length and support 0 based indexing.
pkgPath, typeName, valueClass| Constructor and Description |
|---|
BArrayType(BType elementType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getDimensions() |
BType |
getElementType()
Get the type of a child elements of this type.
|
<V extends BValue> |
getEmptyValue()
Get the empty initialized value of this type.
|
TypeSignature |
getSig() |
int |
getTag() |
<V extends BValue> |
getZeroValue()
Get the default value of the type.
|
int |
hashCode() |
String |
toString() |
getName, getPackagePath, getValueClass, isNative, isPublicpublic BArrayType(BType elementType)
public BType getElementType()
BIndexedTypegetElementType in interface BIndexedTypepublic <V extends BValue> V getZeroValue()
BTypeBType#getInitValue().getZeroValue in class BTypeV - Type of the valuepublic <V extends BValue> V getEmptyValue()
BTypeBType#getDefaultValue()).getEmptyValue in class BTypeV - Type of the valuepublic TypeSignature getSig()
public int getDimensions()
Copyright © 2018 WSO2. All rights reserved.