public class BObjectType extends BStructureType
BObjectType
represents a user defined object type in Ballerina.Modifier and Type | Field and Description |
---|---|
ObjectTypeInfo |
objectTypeInfo |
defaultsValuesInitFunc, flags, initializer
pkgPath, typeName, valueClass
Constructor and Description |
---|
BObjectType(ObjectTypeInfo objectTypeInfo,
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 ObjectTypeInfo objectTypeInfo
public BObjectType(ObjectTypeInfo objectTypeInfo, String typeName, String pkgPath, int flags)
BStructType
which represents the user defined struct type.objectTypeInfo
- object type info objecttypeName
- string name of the typepkgPath
- package of the structflags
- flags of the object 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.