net.sourceforge.pmd.lang.apex.ApexLanguageProcessor Maven / Gradle / Ivy
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.apex;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.LanguageVersionHandler;
import net.sourceforge.pmd.lang.apex.multifile.ApexMultifileAnalysis;
import net.sourceforge.pmd.lang.apex.multifile.InternalApiBridge;
import net.sourceforge.pmd.lang.impl.BatchLanguageProcessor;
public class ApexLanguageProcessor
extends BatchLanguageProcessor {
private final ApexMultifileAnalysis multifileAnalysis;
private final ApexLanguageHandler services;
ApexLanguageProcessor(ApexLanguageProperties bundle) {
super(bundle);
this.multifileAnalysis = InternalApiBridge.createApexMultiFileAnalysis(bundle);
this.services = new ApexLanguageHandler();
}
@Override
public @NonNull LanguageVersionHandler services() {
return services;
}
public ApexMultifileAnalysis getMultiFileState() {
return multifileAnalysis;
}
}