public class BFunctionType extends BType
{@link BFunctionType } represents a function type in ballerina.| Modifier and Type | Field and Description |
|---|---|
BType[] |
paramTypes |
BType[] |
retParamTypes |
pkgPath, typeName, valueClass| Constructor and Description |
|---|
BFunctionType() |
BFunctionType(BType[] paramTypes,
BType[] retParamType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
<V extends BValue> |
getEmptyValue()
Get the empty initialized value of this type.
|
String[] |
getParametersFieldsNames() |
BType[] |
getParameterType() |
BType[] |
getReturnParameterType() |
String[] |
getReturnsParametersFieldsNames() |
TypeSignature |
getSig() |
int |
getTag() |
static String |
getTypeName(BType[] parameterType,
BType[] returnParameterType) |
<V extends BValue> |
getZeroValue()
Get the default value of the type.
|
int |
hashCode() |
boolean |
hasReturnsKeyword() |
void |
setHasReturnsKeyword(boolean hasReturnsKeyword) |
void |
setParametersFieldsNames(String[] parametersFieldsNames) |
void |
setReturnsParametersFieldsNames(String[] returnsParametersFieldsNames) |
getName, getPackagePath, getValueClass, isNative, isPublic, toStringpublic BType[] getParameterType()
public BType[] getReturnParameterType()
public <V extends BValue> V getZeroValue()
BTypeBType#getInitValue().getZeroValue in class BTypeV - Type of the valuepublic <V extends BValue> V getEmptyValue()
BTypeBType#getDefaultValue()).getEmptyValue in class BTypeV - Type of the valuepublic TypeSignature getSig()
public boolean hasReturnsKeyword()
public void setHasReturnsKeyword(boolean hasReturnsKeyword)
public String[] getParametersFieldsNames()
public void setParametersFieldsNames(String[] parametersFieldsNames)
public String[] getReturnsParametersFieldsNames()
public void setReturnsParametersFieldsNames(String[] returnsParametersFieldsNames)
Copyright © 2018 WSO2. All rights reserved.