Modifier and Type | Method and Description |
---|---|
BValue |
Context.getNullableRefArgument(int index) |
BValue |
NativeCallContext.getNullableRefArgument(int index) |
BValue |
Context.getRefArgument(int index) |
BValue |
NativeCallContext.getRefArgument(int index) |
BValue[] |
Context.getReturnValues() |
BValue[] |
NativeCallContext.getReturnValues() |
Modifier and Type | Method and Description |
---|---|
void |
Context.setReturnValues(BValue... values) |
void |
NativeCallContext.setReturnValues(BValue... values) |
Modifier and Type | Method and Description |
---|---|
void |
BLangCallableUnitCallback.notifyFailure(BMap<String,BValue> error) |
Modifier and Type | Class and Description |
---|---|
class |
GlobalMemoryBlock
The
GlobalMemoryBlock represents the global memory block in Ballerina VM. |
Modifier and Type | Field and Description |
---|---|
BValue[] |
StackFrame.returnValues |
Modifier and Type | Field and Description |
---|---|
protected Map<String,BMap<String,BValue>> |
CallableWorkerResponseContext.workerErrors |
Modifier and Type | Method and Description |
---|---|
BValue |
GlobalMemoryBlock.copy() |
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
BLangVMStructs.createBStruct(StructureTypeInfo structInfo,
Object... values)
Create BStruct for given StructInfo and BValues.
|
static BMap<String,BValue> |
BLangVMErrors.createCallCancelledException(WorkerExecutionContext context) |
static BMap<String,BValue> |
BLangVMErrors.createCallFailedException(WorkerExecutionContext context,
Map<String,BMap<String,BValue>> errors) |
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message)
Create error Struct from given message.
|
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message,
BMap<String,BValue> cause)
Create error Struct from given error message and cause.
|
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
StructureTypeInfo errorType,
Object... values)
Create an error Struct from given struct type and message.
|
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
String message)
Create error Struct from given error message.
|
static BMap<String,BValue> |
BLangVMErrors.createError(WorkerExecutionContext context,
String message) |
static BMap<String,BValue> |
BLangVMErrors.createIllegalStateException(Context context,
String msg) |
static BMap<String,BValue> |
BLangVMErrors.createNullRefException(Context context) |
static BMap<String,BValue> |
BLangVMErrors.createNullRefException(WorkerExecutionContext context) |
static BMap<String,BValue> |
BLangVMStructs.createObject(ObjectTypeInfo objectInfo,
BValue... values)
This is a helper method to create a object in native code.
|
static BMap<String,BValue> |
BLangVMErrors.createTypeCastError(WorkerExecutionContext context,
String sourceType,
String targetType) |
static BMap<String,BValue> |
BLangVMErrors.createTypeConversionError(WorkerExecutionContext context,
String errorMessage) |
BMap<String,BValue> |
WorkerExecutionContext.getError() |
BMap<String,BValue> |
StackFrame.getErrorThrown() |
static BMap<String,BValue> |
BLangVMErrors.getStackFrame(ProgramFile programFile,
CallableUnitInfo callableUnitInfo,
int ip) |
static BMap<String,BValue> |
BLangVMErrors.getStackFrame(WorkerExecutionContext context) |
protected Map<String,BMap<String,BValue>> |
CallableWorkerResponseContext.getWorkerErrors() |
Modifier and Type | Method and Description |
---|---|
static boolean |
CPU.checkCast(BValue rhsValue,
BType lhsType) |
static BMap<String,BValue> |
BLangVMStructs.createObject(ObjectTypeInfo objectInfo,
BValue... values)
This is a helper method to create a object in native code.
|
Modifier and Type | Method and Description |
---|---|
static void |
BLangVMErrors.attachStackFrame(BMap<String,BValue> error,
WorkerExecutionContext context) |
static void |
BLangVMErrors.attachStackFrame(ProgramFile programFile,
BMap<String,BValue> error,
CallableUnitInfo callableUnitInfo) |
static BMap<String,BValue> |
BLangVMErrors.createCallFailedException(WorkerExecutionContext context,
Map<String,BMap<String,BValue>> errors) |
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message,
BMap<String,BValue> cause)
Create error Struct from given error message and cause.
|
protected void |
BaseWorkerResponseContext.doFailCallbackNotify(BMap<String,BValue> error) |
static WorkerExecutionContext |
BLangScheduler.errorThrown(WorkerExecutionContext ctx,
BMap<String,BValue> error) |
static String |
BLangVMErrors.getAggregatedRootErrorMessages(BMap<String,BValue> error) |
static String |
BLangVMErrors.getCasueStackTrace(BMap<String,BValue> error) |
static String |
BLangVMErrors.getPrintableStackTrace(BMap<String,BValue> error) |
void |
BLangScheduler.BLangAsyncCallableUnitCallback.notifyFailure(BMap<String,BValue> error) |
void |
CallableUnitCallback.notifyFailure(BMap<String,BValue> error)
This should be called to notify the listener that your operation
failed with a specific error.
|
protected WorkerExecutionContext |
CallableWorkerResponseContext.onFinalizedError(WorkerExecutionContext targetCtx,
BMap<String,BValue> error) |
void |
WorkerExecutionContext.setError(BMap<String,BValue> error) |
void |
StackFrame.setErrorThrown(BMap<String,BValue> errorThrown) |
protected void |
CallableWorkerResponseContext.storeError(WorkerExecutionContext sourceCtx,
BMap<String,BValue> error) |
Constructor and Description |
---|
StackFrame(CallableUnitInfo callableUnitInfo,
WorkerInfo workerInfo,
int retAddrs,
int[] retRegIndexes,
BValue[] returnValues) |
Constructor and Description |
---|
WorkerExecutionContext(BMap<String,BValue> error) |
Modifier and Type | Method and Description |
---|---|
BValue |
BallerinaBrokerByteBuf.getValue() |
Constructor and Description |
---|
BallerinaBrokerByteBuf(BValue value) |
Modifier and Type | Method and Description |
---|---|
BValue |
Value.getVMValue() |
BValue |
Struct.getVMValue()
returns VM value.
|
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
ConnectorUtils.createAndGetStruct(Context context,
String packagePath,
String structName)
Deprecated.
This method is used to create a struct given the context and required struct details.
|
static BMap<String,BValue> |
BLangConnectorSPIUtil.createBStruct(Context context,
String pkgPath,
String structName,
Object... values)
Creates a VM struct value.
|
static BMap<String,BValue> |
BLangConnectorSPIUtil.createBStruct(ProgramFile programFile,
String pkgPath,
String structName,
Object... values) |
static BMap<String,BValue> |
BLangConnectorSPIUtil.createObject(Context context,
String pkgPath,
String structName,
BValue... values)
This is a helper method to create a object in native code.
|
static BMap<String,BValue> |
BLangConnectorSPIUtil.createObject(ProgramFile programFile,
String pkgPath,
String objectName,
BValue... values) |
static BMap<String,BValue> |
BLangConnectorSPIUtil.getPackageEndpoint(ProgramFile programFile,
String pkgName,
String version,
String endpointName) |
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
BLangConnectorSPIUtil.createObject(Context context,
String pkgPath,
String structName,
BValue... values)
This is a helper method to create a object in native code.
|
static BMap<String,BValue> |
BLangConnectorSPIUtil.createObject(ProgramFile programFile,
String pkgPath,
String objectName,
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 |
---|---|
static Struct |
BLangConnectorSPIUtil.toStruct(BMap<String,BValue> bStruct)
Wrap BVM struct value to
Struct . |
Modifier and Type | Method and Description |
---|---|
BValue |
StructImpl.getVMValue() |
BValue |
ValueImpl.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 |
---|---|
static StructImpl |
ConnectorSPIModelHelper.createStruct(BMap<String,BValue> struct) |
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> |
BFunctionType.getEmptyValue() |
<V extends BValue> |
BAnyType.getEmptyValue() |
<V extends BValue> |
BFutureType.getEmptyValue() |
<V extends BValue> |
BXMLType.getEmptyValue() |
abstract <V extends BValue> |
BType.getEmptyValue()
Get the empty initialized value of this type.
|
<V extends BValue> |
BUnionType.getEmptyValue() |
<V extends BValue> |
BStreamType.getEmptyValue() |
<V extends BValue> |
BFiniteType.getEmptyValue() |
<V extends BValue> |
BServiceType.getEmptyValue() |
<V extends BValue> |
BTableType.getEmptyValue() |
<V extends BValue> |
BObjectType.getEmptyValue() |
<V extends BValue> |
BRecordType.getEmptyValue() |
<V extends BValue> |
BJSONType.getEmptyValue() |
<V extends BValue> |
BTupleType.getEmptyValue() |
<V extends BValue> |
BArrayType.getEmptyValue() |
<V extends BValue> |
BMapType.getEmptyValue() |
<V extends BValue> |
BIteratorType.getEmptyValue() |
<V extends BValue> |
BTypeDesc.getEmptyValue() |
<V extends BValue> |
BStringType.getEmptyValue() |
<V extends BValue> |
BXMLAttributesType.getEmptyValue() |
<V extends BValue> |
BNullType.getEmptyValue() |
<V extends BValue> |
BType.getValueClass() |
<V extends BValue> |
BFunctionType.getZeroValue() |
<V extends BValue> |
BAnyType.getZeroValue() |
<V extends BValue> |
BFutureType.getZeroValue() |
<V extends BValue> |
BXMLType.getZeroValue() |
abstract <V extends BValue> |
BType.getZeroValue()
Get the default value of the type.
|
<V extends BValue> |
BUnionType.getZeroValue() |
<V extends BValue> |
BStreamType.getZeroValue() |
<V extends BValue> |
BFiniteType.getZeroValue() |
<V extends BValue> |
BServiceType.getZeroValue() |
<V extends BValue> |
BTableType.getZeroValue() |
<V extends BValue> |
BObjectType.getZeroValue() |
<V extends BValue> |
BRecordType.getZeroValue() |
<V extends BValue> |
BJSONType.getZeroValue() |
<V extends BValue> |
BTupleType.getZeroValue() |
<V extends BValue> |
BArrayType.getZeroValue() |
<V extends BValue> |
BMapType.getZeroValue() |
<V extends BValue> |
BIteratorType.getZeroValue() |
<V extends BValue> |
BTypeDesc.getZeroValue() |
<V extends BValue> |
BStringType.getZeroValue() |
<V extends BValue> |
BXMLAttributesType.getZeroValue() |
<V extends BValue> |
BNullType.getZeroValue() |
Constructor and Description |
---|
BStructureType(String typeName,
String pkgPath,
int flags,
Class<? extends BValue> valueClass)
Create a
BStructType which represents the user defined struct type. |
BType(String typeName,
String pkgPath,
Class<? extends BValue> valueClass) |
Modifier and Type | Method and Description |
---|---|
static BValue |
XMLUtils.convertToJSON(BXML xml,
String attributePrefix,
boolean preserveNamespaces)
Converts given xml object to the corresponding json.
|
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
JSONUtils.convertJSONToStruct(BValue json,
BStructureType structType)
Convert a BJSON to a user defined struct.
|
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
JSONUtils.convertJSONToStruct(BValue json,
BStructureType structType)
Convert a BJSON to a user defined struct.
|
static BXML |
JSONUtils.convertToXML(BValue json,
String attributePrefix,
String arrayEntryTag)
Converts given JSON object to the corresponding XML.
|
static BRefType<?> |
JSONUtils.getElement(BValue json,
String elementName)
Get an element from a JSON.
|
static BStringArray |
JSONUtils.getKeys(BValue json)
Returns the keys of a JSON as a
BStringArray . |
static String |
JSONUtils.getTypeName(BValue jsonValue) |
static boolean |
JSONUtils.isJSONArray(BValue json)
Check whether provided JSON object is a JSON Array.
|
static boolean |
JSONUtils.isJSONObject(BValue json)
Check whether provided JSON object is a JSON Object.
|
static BMap<String,?> |
JSONUtils.jsonToBMap(BValue json,
BMapType mapType)
Convert a JSON node to a map.
|
static void |
JSONUtils.remove(BValue json,
String fieldName)
Remove a field from JSON.
|
void |
JsonGenerator.serialize(BValue json) |
static void |
JSONUtils.setArrayElement(BValue json,
long index,
BRefType<?> element)
Set an element in the given position of a JSON array.
|
static void |
JSONUtils.setElement(BValue json,
String elementName,
BValue element)
Set an element in a JSON.
|
Modifier and Type | Method and Description |
---|---|
static BRefType<?> |
JSONUtils.convertMapToJSON(BMap<String,BValue> map,
BJSONType targetType)
Convert map value to JSON.
|
Modifier and Type | Class and Description |
---|---|
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 |
BBoolean
The
BBoolean represents a boolean value in Ballerina. |
class |
BBooleanArray |
class |
BByte
The
BByte represents a byte value in Ballerina. |
class |
BByteArray
BByteArray represents a byte array in Ballerina. |
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 |
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 |
BStreamingJSON
BStreamingJSON represent a JSON array generated from a JSONDataSource . |
class |
BString
The
BString represents a string in Ballerina. |
class |
BStringArray |
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 BXMLItem s in Ballerina. |
Modifier and Type | Method and Description |
---|---|
BValue |
BXMLQName.copy() |
BValue |
BBoolean.copy() |
BValue |
BStream.copy() |
BValue |
BService.copy() |
BValue |
BTable.copy() |
BValue |
BClosure.copy() |
default BValue |
BIterator.copy() |
BValue |
BFunctionPointer.copy() |
BValue |
BFloatArray.copy() |
BValue |
BRefValueArray.copy() |
BValue |
BXMLAttributes.copy() |
BValue |
BTypeDescValue.copy() |
BValue |
BIntRange.copy() |
BValue |
BString.copy() |
BValue |
BCallableFuture.copy() |
BValue |
BValue.copy()
Deep copy
BValue . |
BValue |
BFloat.copy() |
BValue |
BMap.copy() |
BValue |
BInteger.copy() |
BValue |
BBooleanArray.copy() |
BValue |
BIntArray.copy() |
BValue |
BByte.copy() |
BValue |
BByteArray.copy() |
BValue |
BStringArray.copy() |
BValue |
BFloatArray.getBValue(long index) |
BValue |
BRefValueArray.getBValue(long index) |
abstract BValue |
BNewArray.getBValue(long index) |
BValue |
BBooleanArray.getBValue(long index) |
BValue |
BIntArray.getBValue(long index) |
BValue |
BByteArray.getBValue(long index) |
BValue |
BStringArray.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() |
V[] |
BMap.values()
Retrieve the value in the map as an array.
|
Modifier and Type | Method and Description |
---|---|
BMap<String,BValue> |
BTable.getNext() |
Modifier and Type | Method and Description |
---|---|
void |
BStream.publish(BValue data)
Method to publish to a topic representing the stream in the broker.
|
Modifier and Type | Method and Description |
---|---|
void |
BTable.addData(BMap<String,BValue> data) |
void |
BTable.addData(BMap<String,BValue> data,
Context context) |
void |
BTable.performAddOperation(BMap<String,BValue> data,
Context context)
Performs addition of a record to the database.
|
Constructor and Description |
---|
BClosure(BValue value) |
Modifier and Type | Method and Description |
---|---|
BMap<String,BValue> |
TableIterator.generateNext() |
Modifier and Type | Method and Description |
---|---|
void |
TableProvider.deleteData(String tableName,
BMap<String,BValue> constrainedType) |
String |
TableProvider.insertData(String tableName,
BMap<String,BValue> constrainedType) |
static void |
TableUtils.prepareAndExecuteStatement(PreparedStatement stmt,
BMap<String,BValue> constrainedType) |
Modifier and Type | Method and Description |
---|---|
static ErrorTableEntry |
ErrorTableEntry.getMatch(PackageInfo packageInfo,
int currentIP,
BMap<String,BValue> error) |
Modifier and Type | Method and Description |
---|---|
void |
VariableDTO.setBValue(BValue bValue) |
Modifier and Type | Method and Description |
---|---|
void |
CallbackObserver.notifyFailure(BMap<String,BValue> error) |
void |
CallableUnitCallbackObserver.notifyFailure(BMap<String,BValue> error) |
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,
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,
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 WorkerExecutionContext |
BLangVMUtils.handleNativeInvocationError(WorkerExecutionContext parentCtx,
BMap<String,BValue> error) |
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.