Class GraphScopeAppScanner


  • public class GraphScopeAppScanner
    extends Object
    This class accept

    1) classpath 2) output directory 3) graph template string Then scan all class, for all class annotated with FFIGen, FFIMirror, do the code generation.

    • Method Detail

      • scanAppAndGenerate

        public static String scanAppAndGenerate​(String classpath,
                                                String outputDirectory,
                                                String graphTemplateString,
                                                String vertexDataType,
                                                boolean javaFragName)
        We define the same interface for the generation of graphScope of grape. For graphScope, config path is not used, which means we don't need the configuration file, messageTypes are all from FFIMirror,(later we should scan the jar to find all usage of the message send function) For Grape, we still run the main method to generate the configuration file.
        Parameters:
        classpath - java class path
        outputDirectory - where to output
        Returns:
        absolute output path
      • parseGraphTemplateStr

        public static String[] parseGraphTemplateStr​(String graphTemplateStr)
      • collectFFIMirror

        public void collectFFIMirror​(Path classPath)