public class StructInfo extends StructureTypeInfo
StructInfo contains metadata of a Ballerina struct entry in the program file.| Modifier and Type | Field and Description |
|---|---|
AttachedFunctionInfo |
defaultsValuesInitFunc |
Map<String,AttachedFunctionInfo> |
funcInfoEntries |
AttachedFunctionInfo |
initializer |
flags, name, nameCPIndex, packagePath, pkgPathCPIndex| Constructor and Description |
|---|
StructInfo(int pkgPathCPIndex,
String packagePath,
int nameCPIndex,
String name,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldInfo(StructFieldInfo fieldInfo) |
boolean |
equals(Object obj) |
StructFieldInfo[] |
getFieldInfoEntries() |
BStructType |
getType() |
int |
hashCode() |
void |
setType(BStructType structType) |
addAttributeInfo, getAttributeInfo, getAttributeInfoEntries, getName, getNameCPIndex, getPackageInfo, getPackagePath, setPackageInfopublic Map<String,AttachedFunctionInfo> funcInfoEntries
public AttachedFunctionInfo initializer
public AttachedFunctionInfo defaultsValuesInitFunc
public BStructType getType()
public void setType(BStructType structType)
public void addFieldInfo(StructFieldInfo fieldInfo)
public StructFieldInfo[] getFieldInfoEntries()
Copyright © 2018 WSO2. All rights reserved.