system/src/sc/parser/ParseUtil.java
public static LayeredSystem createSimpleParser(String indexDir, String classPath, String externalClassPath, String srcPath, IExternalModelIndex modelIndex) {
      Options options = new Options();
      options.installLayers = false;
      options.scInstallDir = indexDir;
      options.mainDir = indexDir;

      LayeredSystem sys = new LayeredSystem(null, null, null, options, null, null, false, modelIndex, null);

      /** Create a single layer to manage externalClasses and source files given to us to parse */
      Layer sysLayer = sys.createLayer("sysLayer", null, null, false, false, false, false, false);
      // Set the externalClassPath - i.e. those classes not loaded via the ClassLoader
      sysLayer.externalClassPath = externalClassPath;

      // Set the path for finding src files.   By default this is relative to the layer's dir so need to make it absolute
      sysLayer.srcPath = FileUtil.makePathAbsolute(srcPath);

      // Marks that the initialization of this layer is complete
      sysLayer.initCompleted = true;

      // Adds it to the index
      sys.registerInactiveLayer(sysLayer);
      // Go through the init phase of all layers
      sys.initInactiveLayer(sysLayer);
      // Go through the start phase of all layers
      sys.startLayers(sysLayer);

      return sys;
   }
/**
    * Creates a LayeredSystem from a single classPath, externalClassPath, and srcPath.   You use this method
    * when you do not have any layers but still want to leverage the low-level language processing capabilities of
    * StrataCode.
    * You can optionally provide an implementation of IExternalModelIndex to provide control over how models
    * are cached and managed on the file system.  This is useful to help synchronize the LayeredSystem's copy of a
    * particular model with the version of the model managed by an external tool like an IDE.
    */
Creates a LayeredSystem from a single classPath, externalClassPath, and srcPath.   You use this method
when you do not have any layers but still want to leverage the low-level language processing capabilities of
StrataCode.
You can optionally provide an implementation of IExternalModelIndex to provide control over how models
are cached and managed on the file system.  This is useful to help synchronize the LayeredSystem's copy of a
particular model with the version of the model managed by an external tool like an IDE.
Creates a LayeredSystem from a single classPath externalClassPath and srcPath . You use this method when you do not have any layers but still want to leverage the low - level language processing capabilities of StrataCode . You can optionally provide an implementation of IExternalModelIndex to provide control over how models are cached and managed on the file system . This is useful to help synchronize the LayeredSystem ' s copy of a particular model with the version of the model managed by an external tool like an IDE .
public static LayeredSystem createSimpleParser(String indexDir, String classPath, String externalClassPath, String srcPath, IExternalModelIndex modelIndex) {
      Options options = new Options();
      options.installLayers = false;
      options.scInstallDir = indexDir;
      options.mainDir = indexDir;
      LayeredSystem sys = new LayeredSystem(null, null, null, options, null, null, false, modelIndex, null);
      /** Create a single layer to manage externalClasses and source files given to us to parse */
      Layer sysLayer = sys.createLayer("sysLayer", null, null, false, false, false, false, false);
      sysLayer.externalClassPath = externalClassPath;
      sysLayer.srcPath = FileUtil.makePathAbsolute(srcPath);
      sysLayer.initCompleted = true;
      sys.registerInactiveLayer(sysLayer);
      sys.initInactiveLayer(sysLayer);
      sys.startLayers(sysLayer);
      return sys;
   }
public static LayeredSystem createSimpleParser ( String indexDir , String classPath , String externalClassPath , String srcPath , IExternalModelIndex modelIndex ) { Options options = new Options ( ) ; options . installLayers = false ; options . scInstallDir = indexDir ; options . mainDir = indexDir ; LayeredSystem sys = new LayeredSystem ( null , null , null , options , null , null , false , modelIndex , null ) ; /** Create a single layer to manage externalClasses and source files given to us to parse */ Layer sysLayer = sys . createLayer ( "sysLayer" , null , null , false , false , false , false , false ) ; sysLayer . externalClassPath = externalClassPath ; sysLayer . srcPath = FileUtil . makePathAbsolute ( srcPath ) ; sysLayer . initCompleted = true ; sys . registerInactiveLayer ( sysLayer ) ; sys . initInactiveLayer ( sysLayer ) ; sys . startLayers ( sysLayer ) ; return sys ; }
Creates a LayeredSystem from a single classPath, externalClassPath, and srcPath.
Creates a LayeredSystem from a single classPath externalClassPath and srcPath .
// Set the externalClassPath - i.e. those classes not loaded via the ClassLoader // Set the path for finding src files.   By default this is relative to the layer's dir so need to make it absolute // Marks that the initialization of this layer is complete // Adds it to the index // Go through the init phase of all layers // Go through the start phase of all layers