public class BRecordType extends BStructureType
BRecordType
represents a user defined record type in Ballerina.Modifier and Type | Field and Description |
---|---|
RecordTypeInfo |
recordTypeInfo |
BType |
restFieldType |
boolean |
sealed |
defaultsValuesInitFunc, flags, initializer
pkgPath, typeName, valueClass
Constructor and Description |
---|
BRecordType(RecordTypeInfo recordTypeInfo,
String typeName,
String pkgPath,
int flags)
Create a
BStructType which represents the user defined struct type. |
Modifier and Type | Method and Description |
---|---|
<V extends BValue> |
getEmptyValue()
Get the empty initialized value of this type.
|
TypeSignature |
getSig() |
int |
getTag() |
TypeInfo |
getTypeInfo() |
<V extends BValue> |
getZeroValue()
Get the default value of the type.
|
getAttachedFunctions, getFields, getFieldTypeCount, setAttachedFunctions, setFields, setFieldTypeCount
equals, getName, getPackagePath, getValueClass, hashCode, isNative, isPublic, toString
public RecordTypeInfo recordTypeInfo
public boolean sealed
public BType restFieldType
public BRecordType(RecordTypeInfo recordTypeInfo, String typeName, String pkgPath, int flags)
BStructType
which represents the user defined struct type.recordTypeInfo
- record type info objecttypeName
- string name of the typepkgPath
- package of the structflags
- of the record typepublic TypeInfo getTypeInfo()
getTypeInfo
in class BStructureType
public <V extends BValue> V getZeroValue()
BType
BType#getInitValue()
.getZeroValue
in class BType
V
- Type of the valuepublic <V extends BValue> V getEmptyValue()
BType
BType#getDefaultValue()
).getEmptyValue
in class BType
V
- Type of the valuepublic TypeSignature getSig()
Copyright © 2018 WSO2. All rights reserved.