All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.pmd.lang.apex.ApexLanguageProcessor Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
/**
 * 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy