modules/annotation-processor/src/main/java/org/ballerinalang/natives/annotation/processor/BallerinaAnnotationProcessor.java
private void generateConstructProviderClass(Map<String, String> options, String srcDir) {
        Filer filer = processingEnv.getFiler();
        
        String classClassName = options.get(CLASS_NAME);
        if (classClassName == null) {
            throw new BallerinaException("class name for the generated construct-provider must be specified.");
        }
        
        String packageName = options.get(PACKAGE_NAME);
        if (packageName == null) {
            throw new BallerinaException("package name for the generated construct-provider must be specified.");
        }
        
        ConstructProviderClassBuilder constructProviderClassBuilder =
                new ConstructProviderClassBuilder(filer, packageName, classClassName, srcDir);
        constructProviderClassBuilder.addNativePackages(nativePackages);
        constructProviderClassBuilder.build();
    }
/**
     * Generate the construct provider class.
     * 
     * @param options Annotation processor options
     * @param srcDir Path to the ballerina source directory
     */
Generate the construct provider class.

@param options Annotation processor options
@param srcDir Path to the ballerina source directory
Generate the construct provider class . @param options Annotation processor options @param srcDir Path to the ballerina source directory
private void generateConstructProviderClass(Map<String, String> options, String srcDir) {
        Filer filer = processingEnv.getFiler();
        String classClassName = options.get(CLASS_NAME);
        if (classClassName == null) {
            throw new BallerinaException("class name for the generated construct-provider must be specified.");
        }
        String packageName = options.get(PACKAGE_NAME);
        if (packageName == null) {
            throw new BallerinaException("package name for the generated construct-provider must be specified.");
        }
        ConstructProviderClassBuilder constructProviderClassBuilder =
                new ConstructProviderClassBuilder(filer, packageName, classClassName, srcDir);
        constructProviderClassBuilder.addNativePackages(nativePackages);
        constructProviderClassBuilder.build();
    }
private void generateConstructProviderClass ( Map < String , String > options , String srcDir ) { Filer filer = processingEnv . getFiler ( ) ; String classClassName = options . get ( CLASS_NAME ) ; if ( classClassName == null ) { throw new BallerinaException ( "class name for the generated construct-provider must be specified." ) ; } String packageName = options . get ( PACKAGE_NAME ) ; if ( packageName == null ) { throw new BallerinaException ( "package name for the generated construct-provider must be specified." ) ; } ConstructProviderClassBuilder constructProviderClassBuilder = new ConstructProviderClassBuilder ( filer , packageName , classClassName , srcDir ) ; constructProviderClassBuilder . addNativePackages ( nativePackages ) ; constructProviderClassBuilder . build ( ) ; }
Generate the construct provider class.
Generate the construct provider class .