public class BEnumType extends BType
BEnumType represents the enum type in Ballerina.pkgPath, typeName, valueClass| Constructor and Description |
|---|
BEnumType(String typeName,
String pkgPath) |
| Modifier and Type | Method and Description |
|---|---|
<V extends BValue> |
getEmptyValue()
Get the empty initialized value of this type.
|
BEnumerator |
getEnumerator(int index) |
TypeSignature |
getSig() |
int |
getTag() |
<V extends BValue> |
getZeroValue()
Get the default value of the type.
|
void |
setEnumerators(BEnumerator[] enumerators) |
equals, getName, getPackagePath, getValueClass, hashCode, isNative, isPublic, toStringpublic BEnumerator getEnumerator(int index)
public void setEnumerators(BEnumerator[] enumerators)
public <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()
Copyright © 2018 WSO2. All rights reserved.