Class ApexMultifileAnalysis
- java.lang.Object
-
- net.sourceforge.pmd.lang.apex.multifile.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
-
-
Constructor Summary
Constructors Constructor Description ApexMultifileAnalysis(ApexLanguageProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.nawforce.common.diagnostics.Issue>
getFileIssues(String filename)
boolean
isFailed()
Returns true if this is analysis index is in a failed state.
-
-
-
Constructor Detail
-
ApexMultifileAnalysis
@InternalApi public ApexMultifileAnalysis(ApexLanguageProperties properties)
-
-
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 fromApexLanguageProcessor.getMultiFileState()
if loading the org failed, maybe because of malformed configuration.
-
-