Constructor and Description |
---|
BLangCallableUnitCallback(Context nativeCallCtx,
WorkerExecutionContext parentCtx,
int[] retRegs,
BType[] retTypes) |
Modifier and Type | Field and Description |
---|---|
protected BType[] |
CallableWorkerResponseContext.responseTypes |
Modifier and Type | Method and Description |
---|---|
static boolean |
CPU.checkCast(BValue rhsValue,
BType lhsType) |
static void |
CPU.copyArgValueForWorkerReceive(WorkerData currentSF,
int regIndex,
BType paramType,
BRefType passedInValue) |
static void |
CPU.copyArgValues(WorkerData callerSF,
WorkerData calleeSF,
int[] argRegs,
BType[] paramTypes) |
static boolean |
CPU.isAssignable(BType sourceType,
BType targetType) |
Constructor and Description |
---|
CallableWorkerResponseContext(BType[] responseTypes,
int workerCount) |
SyncCallableWorkerResponseContext(BType[] responseTypes,
int workerCount) |
Modifier and Type | Method and Description |
---|---|
BType |
ParamDetail.getVarType()
This method will return parameter type.
|
Constructor and Description |
---|
ParamDetail(BType variableType,
String variableName) |
Modifier and Type | Field and Description |
---|---|
protected BType |
SimpleVariableDef.type |
Modifier and Type | Method and Description |
---|---|
BType[] |
CallableUnit.getArgumentTypes()
Get Types of the return input arguments.
|
BType[] |
CallableUnit.getReturnParamTypes()
Get Types of the return parameters.
|
BType |
SimpleVariableDef.getType() |
BType |
VariableDef.getType() |
BType |
AnnotationAttributeValue.getType() |
Modifier and Type | Method and Description |
---|---|
void |
CallableUnit.setParameterTypes(BType[] parameterTypes)
Sets a
BType arrays containing the types of input parameters of this callable unit. |
void |
CallableUnit.setReturnParamTypes(BType[] returnParamTypes)
Sets a
BType arrays containing the types of return parameters of this callable unit. |
void |
SimpleVariableDef.setType(BType type) |
void |
VariableDef.setType(BType type) |
void |
AnnotationAttributeValue.setType(BType type) |
Modifier and Type | Field and Description |
---|---|
protected BType |
AbstractExpression.type |
Modifier and Type | Method and Description |
---|---|
BType |
Expression.getType() |
BType |
AbstractExpression.getType() |
Modifier and Type | Method and Description |
---|---|
void |
Expression.setType(BType type) |
void |
AbstractExpression.setType(BType type) |
Modifier and Type | Class and Description |
---|---|
class |
BAnyType
BAnyType represents any type in Ballerina. |
class |
BArrayType
BArrayType represents a type of an arrays in Ballerina. |
class |
BFiniteType
BFiniteType represents the finite type in Ballerina. |
class |
BFunctionType
{@link BFunctionType } represents a function type in ballerina. |
class |
BFutureType
BTableType represents tabular data in Ballerina. |
class |
BIteratorType
BIteratorType represents the type of iterator in ballerina. |
class |
BJSONType
BJSONType represents a JSON value. |
class |
BMapType
BMapType represents a type of a map in Ballerina. |
class |
BNullType
BNullType represents the type of a NullLiteral . |
class |
BObjectType
BObjectType represents a user defined object type in Ballerina. |
class |
BRecordType
BRecordType represents a user defined record type in Ballerina. |
class |
BServiceType
BServiceType represents a service in Ballerina. |
class |
BStreamType
BStreamType represents streaming data in Ballerina. |
class |
BStringType
BStringType represents a String. |
class |
BStructureType
BStructureType represents a user defined structure type in Ballerina. |
class |
BTableType
BTableType represents tabular data in Ballerina. |
class |
BTupleType
{@link BTupleType} represents a tuple type in Ballerina. |
class |
BTypeDesc
BTypeType represents type of type in Ballerina type system. |
class |
BUnionType
BUnionType represents a union type in Ballerina. |
class |
BXMLAttributesType
BXMLAttributesType represents the type of an xml-attribute-map in ballerina. |
class |
BXMLType
BXMLType represents an XML Element. |
Modifier and Type | Field and Description |
---|---|
BType |
BField.fieldType |
BType[] |
BFunctionType.paramTypes |
BType |
BRecordType.restFieldType |
BType[] |
BFunctionType.retParamTypes |
static BType |
BTypes.typeAny |
static BType |
BTypes.typeBoolean |
static BType |
BTypes.typeByte |
static BType |
BTypes.typeDesc |
static BType |
BTypes.typeFloat |
static BType |
BTypes.typeFuture |
static BType |
BTypes.typeInt |
static BType |
BTypes.typeIterator |
static BType |
BTypes.typeJSON |
static BType |
BTypes.typeMap |
static BType |
BTypes.typeNull |
static BType |
BTypes.typeStream |
static BType |
BTypes.typeString |
static BType |
BTypes.typeTable |
static BType |
BTypes.typeXML |
static BType |
BTypes.typeXMLAttributes |
Modifier and Type | Method and Description |
---|---|
BType |
BFutureType.getConstrainedType() |
BType |
BStreamType.getConstrainedType() |
BType |
BTableType.getConstrainedType() |
BType |
BJSONType.getConstrainedType() |
BType |
BMapType.getConstrainedType()
Returns element types which this map is constrained to.
|
BType |
BArrayType.getElementType() |
BType |
BMapType.getElementType()
Deprecated.
use
BMapType.getConstrainedType() instead. |
BType |
BIndexedType.getElementType()
Get the type of a child elements of this type.
|
BType |
BField.getFieldType() |
BType[] |
BFunctionType.getParameterType() |
BType[] |
BFunctionType.getReturnParameterType() |
static BType |
BTypes.getTypeFromName(String typeName) |
Modifier and Type | Method and Description |
---|---|
List<BType> |
BUnionType.getMemberTypes() |
List<BType> |
BTupleType.getTupleTypes() |
Modifier and Type | Method and Description |
---|---|
static String |
BFunctionType.getTypeName(BType[] parameterType,
BType[] returnParameterType) |
static String |
BFunctionType.getTypeName(BType[] parameterType,
BType[] returnParameterType) |
static boolean |
BTypes.isValueType(BType type) |
Constructor and Description |
---|
BArrayType(BType elementType) |
BArrayType(BType elemType,
int size) |
BField(BType fieldType,
String fieldName,
int flags) |
BFunctionType(BType[] paramTypes,
BType[] retParamType) |
BFunctionType(BType[] paramTypes,
BType[] retParamType) |
BFutureType(BType constraint) |
BJSONType(BType constraint) |
BMapType(BType constraint) |
BMapType(String typeName,
BType constraint,
String pkgPath)
Create a type from the given name.
|
BStreamType(BType constraint) |
BTableType(BType constraint) |
Constructor and Description |
---|
BTupleType(List<BType> typeList)
Create a
BUnionType which represents the union type. |
BUnionType(List<BType> memberTypes)
Create a
BUnionType which represents the union type. |
Modifier and Type | Method and Description |
---|---|
static BRefType<?> |
JSONUtils.convertJSON(BRefType<?> jsonValue,
BType targetType) |
Modifier and Type | Field and Description |
---|---|
protected BType |
BNewArray.arrayType |
Modifier and Type | Method and Description |
---|---|
BType |
BStream.getConstraintType() |
BType |
BXMLQName.getType() |
BType |
BBoolean.getType() |
BType |
BStream.getType() |
BType |
BService.getType() |
BType |
BTable.getType() |
BType |
BClosure.getType() |
default BType |
BIterator.getType() |
BType |
BFunctionPointer.getType() |
BType |
BFloatArray.getType() |
BType |
BXML.getType() |
BType |
BRefValueArray.getType() |
BType |
BNewArray.getType() |
BType |
BXMLAttributes.getType() |
BType |
BTypeDescValue.getType() |
BType |
BIntRange.getType() |
BType |
BString.getType() |
BType |
BCallableFuture.getType() |
BType |
BValue.getType() |
BType |
BFloat.getType() |
BType |
BMap.getType() |
BType |
BInteger.getType() |
BType |
BBooleanArray.getType() |
BType |
BIntArray.getType() |
BType |
BByte.getType() |
BType |
BByteArray.getType() |
BType |
BStringArray.getType() |
BType |
BTypeDescValue.value() |
Constructor and Description |
---|
BFunctionPointer(FunctionRefCPEntry funcRefCPEntryIndex,
BType type) |
BMap(BType type) |
BRefValueArray(BRefType<?>[] values,
BType type) |
BRefValueArray(BType type) |
BStream(BType type,
String name) |
BTable(BType type,
BStringArray indexColumns,
BStringArray keyColumns,
BRefValueArray dataRows) |
BTypeDescValue(BType typeValue) |
Modifier and Type | Method and Description |
---|---|
String |
TableProvider.createTable(BType constrainedType,
BStringArray primaryKeys,
BStringArray indexeColumns) |
Modifier and Type | Field and Description |
---|---|
BType |
CallableUnitInfo.attachedToType |
protected BType[] |
CallableUnitInfo.paramTypes |
protected BType[] |
CallableUnitInfo.retParamTypes |
BType |
Instruction.InstructionWRKSendReceive.type |
BType[] |
Instruction.InstructionLock.types |
Modifier and Type | Method and Description |
---|---|
BType |
StructFieldInfo.getFieldType() |
BType[] |
CallableUnitInfo.getParamTypes() |
BType[] |
CallableUnitInfo.getRetParamTypes() |
BType |
PackageVarInfo.getType() |
BType |
TypeInfo.getType() |
BType |
FiniteTypeInfo.getType() |
BType[] |
WorkerDataChannelInfo.getTypes() |
BType |
LocalVariableInfo.getVariableType() |
Modifier and Type | Method and Description |
---|---|
void |
StructFieldInfo.setFieldType(BType fieldType) |
void |
CallableUnitInfo.setParamTypes(BType[] paramTypes) |
void |
CallableUnitInfo.setRetParamTypes(BType[] retParamType) |
void |
PackageVarInfo.setType(BType type) |
void |
WorkerDataChannelInfo.setTypes(BType[] types) |
Constructor and Description |
---|
LocalVariableInfo(String varName,
int varNameCPIndex,
int varIndex,
int varTypeSigCPIndex,
BType varType) |
Modifier and Type | Method and Description |
---|---|
BType |
TypeRefCPEntry.getType() |
Modifier and Type | Method and Description |
---|---|
void |
TypeRefCPEntry.setType(BType type) |
Modifier and Type | Method and Description |
---|---|
static void |
BLangVMUtils.copyArgValues(WorkerData caller,
WorkerData callee,
int[] argRegs,
BType[] paramTypes) |
static int[] |
BLangVMUtils.createReturnRegValues(WorkerDataIndex paramWDI,
WorkerDataIndex retWDI,
BType[] retTypes) |
static WorkerData |
BLangVMUtils.createWorkerDataForLocal(WorkerInfo workerInfo,
WorkerExecutionContext parentCtx,
int[] argRegs,
BType[] paramTypes) |
static void |
BLangVMUtils.mergeResultData(WorkerData sourceData,
WorkerData targetData,
BType[] types,
int[] regIndexes) |
static void |
BLangVMUtils.populateWorkerDataWithValues(WorkerData data,
int[] regIndexes,
BValue[] vals,
BType[] types) |
static void |
BLangVMUtils.populateWorkerResultWithValues(WorkerData result,
BValue[] vals,
BType[] types) |
Copyright © 2018 WSO2. All rights reserved.