public abstract class BStructureType extends BType
BStructureType
represents a user defined structure type in Ballerina.Modifier and Type | Field and Description |
---|---|
BAttachedFunction |
defaultsValuesInitFunc |
int |
flags |
BAttachedFunction |
initializer |
pkgPath, typeName, valueClass
Constructor and Description |
---|
BStructureType(String typeName,
String pkgPath,
int flags,
Class<? extends BValue> valueClass)
Create a
BStructType which represents the user defined struct type. |
Modifier and Type | Method and Description |
---|---|
BAttachedFunction[] |
getAttachedFunctions() |
BField[] |
getFields() |
int[] |
getFieldTypeCount() |
abstract TypeInfo |
getTypeInfo() |
void |
setAttachedFunctions(BAttachedFunction[] attachedFunctions) |
void |
setFields(BField[] fields) |
void |
setFieldTypeCount(int[] fieldCount) |
equals, getEmptyValue, getName, getPackagePath, getSig, getTag, getValueClass, getZeroValue, hashCode, isNative, isPublic, toString
public BAttachedFunction initializer
public BAttachedFunction defaultsValuesInitFunc
public int flags
public BStructureType(String typeName, String pkgPath, int flags, Class<? extends BValue> valueClass)
BStructType
which represents the user defined struct type.typeName
- string name of the typepkgPath
- package of the structflags
- of the structure typevalueClass
- of the structure typepublic BField[] getFields()
public void setFields(BField[] fields)
public int[] getFieldTypeCount()
public void setFieldTypeCount(int[] fieldCount)
public BAttachedFunction[] getAttachedFunctions()
public void setAttachedFunctions(BAttachedFunction[] attachedFunctions)
public abstract TypeInfo getTypeInfo()
Copyright © 2018 WSO2. All rights reserved.