001/*
002 * Copyright 2010-2013 JetBrains s.r.o.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package org.jetbrains.jet.lang.resolve;
018
019import com.google.common.base.Predicate;
020import com.intellij.psi.PsiFile;
021import org.jetbrains.annotations.NotNull;
022
023import java.util.List;
024
025/**
026 * Various junk that cannot be placed into context (yet).
027 */
028public class TopDownAnalysisParameters {
029    @NotNull
030    private final Predicate<PsiFile> analyzeCompletely;
031    private final boolean analyzingBootstrapLibrary;
032    private final boolean declaredLocally;
033    @NotNull
034    private final List<AnalyzerScriptParameter> scriptParameters;
035
036    public TopDownAnalysisParameters(
037            @NotNull Predicate<PsiFile> analyzeCompletely,
038            boolean analyzingBootstrapLibrary,
039            boolean declaredLocally,
040            @NotNull List<AnalyzerScriptParameter> scriptParameters) {
041        this.analyzeCompletely = analyzeCompletely;
042        this.analyzingBootstrapLibrary = analyzingBootstrapLibrary;
043        this.declaredLocally = declaredLocally;
044        this.scriptParameters = scriptParameters;
045    }
046
047    @NotNull
048    public Predicate<PsiFile> getAnalyzeCompletely() {
049        return analyzeCompletely;
050    }
051
052    public boolean isAnalyzingBootstrapLibrary() {
053        return analyzingBootstrapLibrary;
054    }
055
056    public boolean isDeclaredLocally() {
057        return declaredLocally;
058    }
059
060    @NotNull
061    public List<AnalyzerScriptParameter> getScriptParameters() {
062        return scriptParameters;
063    }
064}