Class ApexMultifileAnalysis


  • @Experimental
    public final class ApexMultifileAnalysis
    extends Object
    Stores multi-file analysis data. The 'Org' here is the primary ApexLink structure for maintaining information about the Salesforce metadata. We load 'Packages' into it to perform analysis. Once constructed you can get 'Issue' information from it on what was found. The 'Org' holds mutable state for IDE use that can get quite large (a few hundred MB on very large projects). An alternative way to use this would be to cache the issues after packages are loaded and throw away the 'Org'. That would be a better model if all you wanted was the issues but more complex rules will need the ability to traverse the internal graph of the 'Org'.
    Author:
    Kevin Jones
    • Method Detail

      • isFailed

        public boolean isFailed()
        Returns true if this is analysis index is in a failed state. This object is then useless. The failed instance is returned from ApexLanguageProcessor.getMultiFileState() if loading the org failed, maybe because of malformed configuration.
      • getFileIssues

        public List<com.nawforce.common.diagnostics.Issue> getFileIssues​(String filename)