01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: //
10: package de.uka.ilkd.key.parser;
11:
12: import de.uka.ilkd.key.java.JavaInfo;
13: import de.uka.ilkd.key.java.KeYRecoderMapping;
14: import de.uka.ilkd.key.java.Services;
15: import de.uka.ilkd.key.java.TypeConverter;
16: import de.uka.ilkd.key.java.recoderext.KeYCrossReferenceServiceConfiguration;
17: import de.uka.ilkd.key.logic.NamespaceSet;
18:
19: public class ParserConfig {
20:
21: private Services services;
22: private NamespaceSet nss;
23:
24: public ParserConfig(Services services, NamespaceSet nss) {
25: this .services = services;
26: this .nss = nss;
27: }
28:
29: public Services services() {
30: return services;
31: }
32:
33: public NamespaceSet namespaces() {
34: return nss;
35: }
36:
37: public JavaInfo javaInfo() {
38: return services.getJavaInfo();
39: }
40:
41: public KeYRecoderMapping keyRecoderMapping() {
42: return services.getJavaInfo().rec2key();
43: }
44:
45: public TypeConverter typeConverter() {
46: return services.getTypeConverter();
47: }
48:
49: public KeYCrossReferenceServiceConfiguration serviceConfiguration() {
50: return services.getJavaInfo().getKeYProgModelInfo()
51: .getServConf();
52: }
53:
54: }
|