modules/ballerina-core/src/test/java/org/ballerinalang/core/utils/Connectors.java
public static void addAction(SymScope symScope, AbstractNativeAction action) {
        BallerinaAction annotations = (BallerinaAction) action.getClass().getAnnotation(BallerinaAction.class);
        SymbolName symbolName = LangModelUtils.getActionSymName(annotations.actionName(), annotations.connectorName(),
                annotations.packageName(), LangModelUtils.getTypesOfParams(action.getParameterDefs()));
        Symbol symbol = new Symbol(action);
        symScope.insert(symbolName, symbol);
    }
/**
     * Add action instance to given SymScope.
     *
     * @param symScope SymScope instance.
     * @param action   Action instance.
     */
Add action instance to given SymScope.
@param symScope SymScope instance.
@param action   Action instance.
Add action instance to given SymScope . @param symScope SymScope instance . @param action Action instance .
public static void addAction(SymScope symScope, AbstractNativeAction action) {
        BallerinaAction annotations = (BallerinaAction) action.getClass().getAnnotation(BallerinaAction.class);
        SymbolName symbolName = LangModelUtils.getActionSymName(annotations.actionName(), annotations.connectorName(),
                annotations.packageName(), LangModelUtils.getTypesOfParams(action.getParameterDefs()));
        Symbol symbol = new Symbol(action);
        symScope.insert(symbolName, symbol);
    }
public static void addAction ( SymScope symScope , AbstractNativeAction action ) { BallerinaAction annotations = ( BallerinaAction ) action . getClass ( ) . getAnnotation ( BallerinaAction . class ) ; SymbolName symbolName = LangModelUtils . getActionSymName ( annotations . actionName ( ) , annotations . connectorName ( ) , annotations . packageName ( ) , LangModelUtils . getTypesOfParams ( action . getParameterDefs ( ) ) ) ; Symbol symbol = new Symbol ( action ) ; symScope . insert ( symbolName , symbol ) ; }
Add action instance to given SymScope.
Add action instance to given SymScope .