public enum TypeEnum extends Enum<TypeEnum>
TypeEnum
represents all the types names in Ballerina.Enum Constant and Description |
---|
ANY |
ARRAY |
BOOLEAN |
BYTE |
CJSON |
CONNECTOR |
EMPTY |
FLOAT |
INT |
JSON |
MAP |
STREAM |
STRING |
STRUCT |
TABLE |
VOID |
XML |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getSig() |
static TypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeEnum INT
public static final TypeEnum BYTE
public static final TypeEnum FLOAT
public static final TypeEnum STRING
public static final TypeEnum BOOLEAN
public static final TypeEnum XML
public static final TypeEnum JSON
public static final TypeEnum CJSON
public static final TypeEnum MAP
public static final TypeEnum TABLE
public static final TypeEnum VOID
public static final TypeEnum STRUCT
public static final TypeEnum STREAM
public static final TypeEnum ANY
public static final TypeEnum ARRAY
public static final TypeEnum CONNECTOR
public static final TypeEnum EMPTY
public static TypeEnum[] values()
for (TypeEnum c : TypeEnum.values()) System.out.println(c);
public static TypeEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public String getSig()
Copyright © 2018 WSO2. All rights reserved.