| Modifier and Type | Method and Description |
|---|---|
BValue |
NativeCallContext.getNullableRefArgument(int index) |
BValue |
Context.getNullableRefArgument(int index) |
BValue |
NativeCallContext.getRefArgument(int index) |
BValue |
Context.getRefArgument(int index) |
BValue[] |
NativeCallContext.getReturnValues() |
BValue[] |
Context.getReturnValues() |
| Modifier and Type | Method and Description |
|---|---|
void |
NativeCallContext.setReturnValues(BValue... values) |
void |
Context.setReturnValues(BValue... values) |
| Modifier and Type | Field and Description |
|---|---|
BValue[] |
StackFrame.returnValues |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
BLangVMStructs.createObject(StructInfo structInfo,
BValue... values)
Create ballerina object.
|
static boolean |
CPU.isAssignable(BValue rhsValue,
BType lhsType) |
| Constructor and Description |
|---|
StackFrame(CallableUnitInfo callableUnitInfo,
WorkerInfo workerInfo,
int retAddrs,
int[] retRegIndexes,
BValue[] returnValues) |
| Modifier and Type | Method and Description |
|---|---|
BValue |
Struct.getVMValue()
returns VM value.
|
BValue |
Value.getVMValue() |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
BLangConnectorSPIUtil.createObject(Context context,
String pkgPath,
String structName,
BValue... values) |
static BStruct |
BLangConnectorSPIUtil.createObject(ProgramFile programFile,
String pkgPath,
String structName,
BValue... values) |
static Value.Type |
Value.Type.getType(BValue value) |
static void |
Executor.submit(Resource resource,
CallableUnitCallback responseCallback,
Map<String,Object> properties,
ObserverContext observerContext,
BValue... values)
This method will execute Ballerina resource in non-blocking manner.
|
static void |
Executor.submit(Resource resource,
CallableUnitCallback responseCallback,
Map<String,Object> properties,
ObserverContext observerContext,
WorkerExecutionContext context,
BValue... values)
This method will execute Ballerina resource in non-blocking manner.
|
| Modifier and Type | Method and Description |
|---|---|
BValue |
ValueImpl.getVMValue() |
BValue |
StructImpl.getVMValue() |
| Modifier and Type | Method and Description |
|---|---|
static ValueImpl |
ValueImpl.createValue(BValue value) |
static void |
ResourceExecutor.execute(Resource resource,
CallableUnitCallback responseCallback,
Map<String,Object> properties,
ObserverContext observerContext,
WorkerExecutionContext context,
BValue... bValues)
This method will execute the resource, given required details.
|
| Modifier and Type | Method and Description |
|---|---|
BValue |
AnnotationAttributeValue.getLiteralValue() |
| Constructor and Description |
|---|
AnnotationAttributeValue(BValue bValue,
SimpleTypeName valueType,
NodeLocation location,
WhiteSpaceDescriptor whiteSpaceDescriptor) |
| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends BValue> |
BType.valueClass |
Set<BValue> |
BFiniteType.valueSpace |
| Modifier and Type | Method and Description |
|---|---|
<V extends BValue> |
BArrayType.getEmptyValue() |
<V extends BValue> |
BNullType.getEmptyValue() |
<V extends BValue> |
BTypeDesc.getEmptyValue() |
<V extends BValue> |
BBlobType.getEmptyValue() |
<V extends BValue> |
BFunctionType.getEmptyValue() |
<V extends BValue> |
BXMLType.getEmptyValue() |
<V extends BValue> |
BFiniteType.getEmptyValue() |
<V extends BValue> |
BJSONType.getEmptyValue() |
<V extends BValue> |
BTupleType.getEmptyValue() |
<V extends BValue> |
BStringType.getEmptyValue() |
<V extends BValue> |
BTableType.getEmptyValue() |
<V extends BValue> |
BFutureType.getEmptyValue() |
<V extends BValue> |
BUnionType.getEmptyValue() |
<V extends BValue> |
BAnyType.getEmptyValue() |
<V extends BValue> |
BIteratorType.getEmptyValue() |
<V extends BValue> |
BXMLAttributesType.getEmptyValue() |
<V extends BValue> |
BServiceType.getEmptyValue() |
abstract <V extends BValue> |
BType.getEmptyValue()
Get the empty initialized value of this type.
|
<V extends BValue> |
BStructType.getEmptyValue() |
<V extends BValue> |
BStreamType.getEmptyValue() |
<V extends BValue> |
BMapType.getEmptyValue() |
<V extends BValue> |
BType.getValueClass() |
<V extends BValue> |
BArrayType.getZeroValue() |
<V extends BValue> |
BNullType.getZeroValue() |
<V extends BValue> |
BTypeDesc.getZeroValue() |
<V extends BValue> |
BBlobType.getZeroValue() |
<V extends BValue> |
BFunctionType.getZeroValue() |
<V extends BValue> |
BXMLType.getZeroValue() |
<V extends BValue> |
BFiniteType.getZeroValue() |
<V extends BValue> |
BJSONType.getZeroValue() |
<V extends BValue> |
BTupleType.getZeroValue() |
<V extends BValue> |
BStringType.getZeroValue() |
<V extends BValue> |
BTableType.getZeroValue() |
<V extends BValue> |
BFutureType.getZeroValue() |
<V extends BValue> |
BUnionType.getZeroValue() |
<V extends BValue> |
BAnyType.getZeroValue() |
<V extends BValue> |
BIteratorType.getZeroValue() |
<V extends BValue> |
BXMLAttributesType.getZeroValue() |
<V extends BValue> |
BServiceType.getZeroValue() |
abstract <V extends BValue> |
BType.getZeroValue()
Get the default value of the type.
|
<V extends BValue> |
BStructType.getZeroValue() |
<V extends BValue> |
BStreamType.getZeroValue() |
<V extends BValue> |
BMapType.getZeroValue() |
| Constructor and Description |
|---|
BType(String typeName,
String pkgPath,
Class<? extends BValue> valueClass) |
| Modifier and Type | Method and Description |
|---|---|
static BJSON |
JSONUtils.convertMapToJSON(BMap<String,BValue> map) |
static BJSON |
JSONUtils.convertMapToJSON(BMap<String,BValue> map,
BJSONType targetType)
|
| Modifier and Type | Class and Description |
|---|---|
class |
BArray<V extends BValue>
BArray represents an arrays in Ballerina. |
class |
BMap<K,V extends BValue>
MapType represents a map. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BFuture
Ballerina base value for the "future" type.
|
interface |
BIterator
{@link BIterator} represents a Iterator of a Ballerina {@link BCollection}. |
interface |
BRefType<T>
The
BRefType represents a reference type value in Ballerina. |
| Modifier and Type | Class and Description |
|---|---|
class |
BArray<V extends BValue>
BArray represents an arrays in Ballerina. |
class |
BBlob
The
BBlob represents a byte array. |
class |
BBlobArray |
class |
BBoolean
The
BBoolean represents a boolean value in Ballerina. |
class |
BBooleanArray |
class |
BCallableFuture
Ballerina value for the callable "future" type.
|
class |
BClosure
The
BClosure holds closure of any BValue in Ballerina. |
class |
BFloat
The
BFloat represents a float value in Ballerina. |
class |
BFloatArray |
class |
BFunctionPointer
{@link BFunctionPointer} represents a function pointer reference value in Ballerina. |
class |
BIntArray |
class |
BInteger
The
BInteger represents a int value in Ballerina. |
class |
BIntRange
{@link BIntRange} represents integer range in Ballerina. |
class |
BJSON
BJSON represents a JSON value in Ballerina. |
class |
BMap<K,V extends BValue>
MapType represents a map. |
class |
BNewArray
BArray represents an arrays in Ballerina. |
class |
BRefValueArray |
class |
BService
The
BService represents a service value in Ballerina. |
class |
BStream
The
BStream represents a stream in Ballerina. |
class |
BString
The
BString represents a string in Ballerina. |
class |
BStringArray |
class |
BStruct
The
BStruct represents the value of a user defined struct in Ballerina. |
class |
BTable
The
BTable represents a data set in Ballerina. |
class |
BTypeDescValue
Ballerina Value that encapsulates a Ballerina Type.
|
class |
BValueType
The
BValueType represents a value type value in Ballerina. |
class |
BXML<T>
BXML represents a XML in Ballerina. |
class |
BXMLAttributes
The
BString represents a XML attributes map in ballerina, denoted by 'foo@', where foo is an xml variable. |
class |
BXMLItem
BXML represents a single XML item in Ballerina. |
class |
BXMLQName
Represents a XML qualified name in ballerina.
|
class |
BXMLSequence
BXMLSequence represents a sequence of BXMLItems in Ballerina. |
| Modifier and Type | Method and Description |
|---|---|
<V extends BValue> |
BArray.add(long index,
V value) |
| Modifier and Type | Method and Description |
|---|---|
BValue |
BBlob.copy() |
BValue |
BStream.copy() |
BValue |
BTypeDescValue.copy() |
default BValue |
BIterator.copy() |
BValue |
BIntArray.copy() |
BValue |
BFloat.copy() |
BValue |
BInteger.copy() |
BValue |
BXMLAttributes.copy() |
BValue |
BString.copy() |
BValue |
BIntRange.copy() |
BValue |
BBoolean.copy() |
BValue |
BCallableFuture.copy() |
BValue |
BBooleanArray.copy() |
BValue |
BStruct.copy() |
BValue |
BFunctionPointer.copy() |
BValue |
BClosure.copy() |
BValue |
BMap.copy() |
BValue |
BValue.copy()
Deep copy
BValue. |
BValue |
BXMLQName.copy() |
BValue |
BStringArray.copy() |
BValue |
BBlobArray.copy() |
BValue |
BService.copy() |
BValue |
BJSON.copy() |
BValue |
BRefValueArray.copy() |
BValue |
BTable.copy() |
BValue |
BFloatArray.copy() |
BValue |
BArray.copy() |
abstract BValue |
BNewArray.getBValue(long index) |
BValue |
BIntArray.getBValue(long index) |
BValue |
BBooleanArray.getBValue(long index) |
BValue |
BStringArray.getBValue(long index) |
BValue |
BBlobArray.getBValue(long index) |
BValue |
BRefValueArray.getBValue(long index) |
BValue |
BFloatArray.getBValue(long index) |
BValue[] |
BIterator.getNext(int arity)
Get the array of BValues for next element for given argument arity.
|
abstract BValue |
BXML.slice(long startIndex,
long endIndex)
Slice and return a subsequence of the given XML sequence.
|
BValue |
BClosure.value() |
| Modifier and Type | Method and Description |
|---|---|
void |
BStream.publish(BValue data)
Method to publish to a topic representing the stream in the broker.
|
| Constructor and Description |
|---|
BClosure(BValue value) |
| Modifier and Type | Method and Description |
|---|---|
void |
VariableDTO.setBValue(BValue bValue) |
| Modifier and Type | Method and Description |
|---|---|
static BValue[] |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
BValue[] args) |
static BValue[] |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
BValue[] args) |
static BValue[] |
BLangFunctions.invokeEntrypointCallable(ProgramFile programFile,
PackageInfo packageInfo,
FunctionInfo functionInfo,
BValue[] args) |
static BValue[] |
BLangFunctions.invokeEntrypointCallable(ProgramFile bLangProgram,
String packageName,
String callableName,
BValue[] args)
This method calls a program callable, considering it as an entry point callable.
|
static BValue[] |
BLangVMUtils.populateReturnData(WorkerExecutionContext ctx,
CallableUnitInfo callableUnitInfo,
int[] retRegs) |
| Modifier and Type | Method and Description |
|---|---|
static BValue[] |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
BValue[] args) |
static BValue[] |
BLangFunctions.invokeCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
BValue[] args) |
static BValue[] |
BLangFunctions.invokeEntrypointCallable(ProgramFile programFile,
PackageInfo packageInfo,
FunctionInfo functionInfo,
BValue[] args) |
static BValue[] |
BLangFunctions.invokeEntrypointCallable(ProgramFile bLangProgram,
String packageName,
String callableName,
BValue[] args)
This method calls a program callable, considering it as an entry point callable.
|
static void |
BLangFunctions.invokeServiceCallable(CallableUnitInfo callableUnitInfo,
WorkerExecutionContext parentCtx,
ObserverContext observerContext,
BValue[] args,
CallableUnitCallback responseCallback) |
static int[][] |
BLangVMUtils.populateArgAndReturnData(WorkerExecutionContext ctx,
CallableUnitInfo callableUnitInfo,
BValue[] args) |
static void |
BLangVMUtils.populateWorkerDataWithValues(WorkerData data,
int[] regIndexes,
BValue[] vals,
BType[] types) |
static void |
BLangVMUtils.populateWorkerResultWithValues(WorkerData result,
BValue[] vals,
BType[] types) |
| Modifier and Type | Method and Description |
|---|---|
static BValue[] |
TransactionUtils.notifyTransactionBegin(WorkerExecutionContext ctx,
String globalTransactionId,
String url,
int transactionBlockId,
String protocol) |
Copyright © 2018 WSO2. All rights reserved.