Search in sources :

Example 1 with ConnectorInfo

use of org.ballerinalang.util.codegen.ConnectorInfo in project ballerina by ballerina-lang.

the class CPU method createNewConnector.

private static void createNewConnector(WorkerExecutionContext ctx, int[] operands, WorkerData sf) {
    int cpIndex = operands[0];
    int i = operands[1];
    StructureRefCPEntry structureRefCPEntry = (StructureRefCPEntry) ctx.constPool[cpIndex];
    ConnectorInfo connectorInfo = (ConnectorInfo) structureRefCPEntry.getStructureTypeInfo();
    BConnector bConnector = new BConnector(connectorInfo.getType());
    sf.refRegs[i] = bConnector;
}
Also used : BConnector(org.ballerinalang.model.values.BConnector) ConnectorInfo(org.ballerinalang.util.codegen.ConnectorInfo) StructureRefCPEntry(org.ballerinalang.util.codegen.cpentries.StructureRefCPEntry)

Aggregations

BConnector (org.ballerinalang.model.values.BConnector)1 ConnectorInfo (org.ballerinalang.util.codegen.ConnectorInfo)1 StructureRefCPEntry (org.ballerinalang.util.codegen.cpentries.StructureRefCPEntry)1