001    /*
002     * Copyright 2010-2014 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    
017    package org.jetbrains.jet.lang.types.expressions;
018    
019    import org.jetbrains.annotations.NotNull;
020    import org.jetbrains.jet.context.GlobalContext;
021    import org.jetbrains.jet.lang.PlatformToKotlinClassMap;
022    import org.jetbrains.jet.lang.resolve.calls.CallResolver;
023    
024    import javax.inject.Inject;
025    
026    public class ExpressionTypingComponents {
027        /*package*/ GlobalContext globalContext;
028        /*package*/ ExpressionTypingServices expressionTypingServices;
029        /*package*/ CallResolver callResolver;
030        /*package*/ PlatformToKotlinClassMap platformToKotlinClassMap;
031        /*package*/ ExpressionTypingUtils expressionTypingUtils;
032        /*package*/ ControlStructureTypingUtils controlStructureTypingUtils;
033        /*package*/ ForLoopConventionsChecker forLoopConventionsChecker;
034    
035        @Inject
036        public void setGlobalContext(@NotNull GlobalContext globalContext) {
037            this.globalContext = globalContext;
038        }
039    
040        @Inject
041        public void setExpressionTypingServices(@NotNull ExpressionTypingServices expressionTypingServices) {
042            this.expressionTypingServices = expressionTypingServices;
043        }
044    
045        @Inject
046        public void setCallResolver(@NotNull CallResolver callResolver) {
047            this.callResolver = callResolver;
048        }
049    
050        @Inject
051        public void setPlatformToKotlinClassMap(@NotNull PlatformToKotlinClassMap platformToKotlinClassMap) {
052            this.platformToKotlinClassMap = platformToKotlinClassMap;
053        }
054    
055        @Inject
056        public void setExpressionTypingUtils(@NotNull ExpressionTypingUtils expressionTypingUtils) {
057            this.expressionTypingUtils = expressionTypingUtils;
058        }
059    
060        @Inject
061        public void setControlStructureTypingUtils(@NotNull ControlStructureTypingUtils controlStructureTypingUtils) {
062            this.controlStructureTypingUtils = controlStructureTypingUtils;
063        }
064    
065        @Inject
066        public void setForLoopConventionsChecker(@NotNull ForLoopConventionsChecker forLoopConventionsChecker) {
067            this.forLoopConventionsChecker = forLoopConventionsChecker;
068        }
069    
070        @NotNull
071        public GlobalContext getGlobalContext() {
072            return globalContext;
073        }
074    
075        @NotNull
076        public ExpressionTypingServices getExpressionTypingServices() {
077            return expressionTypingServices;
078        }
079    
080        @NotNull
081        public CallResolver getCallResolver() {
082            return callResolver;
083        }
084    
085        @NotNull
086        public PlatformToKotlinClassMap getPlatformToKotlinClassMap() {
087            return platformToKotlinClassMap;
088        }
089    
090        @NotNull
091        public ExpressionTypingUtils getExpressionTypingUtils() {
092            return expressionTypingUtils;
093        }
094    
095        @NotNull
096        public ControlStructureTypingUtils getControlStructureTypingUtils() {
097            return controlStructureTypingUtils;
098        }
099    
100        @NotNull
101        public ForLoopConventionsChecker getForLoopConventionsChecker() {
102            return forLoopConventionsChecker;
103        }
104    }