1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.commons.jci.compilers;
19
20
21
22
23
24
25
26
27
28
29
30
31 public class JavaCompilerSettings {
32
33 private String targetVersion = "1.4";
34 private String sourceVersion = "1.4";
35 private String sourceEncoding = "UTF-8";
36 private boolean warnings = false;
37 private boolean deprecations = false;
38 private boolean debug = false;
39
40
41 private boolean verbose = false;
42
43 public JavaCompilerSettings() {
44 }
45
46 public JavaCompilerSettings( final JavaCompilerSettings pSettings ) {
47 targetVersion = pSettings.targetVersion;
48 sourceVersion = pSettings.sourceVersion;
49 sourceEncoding = pSettings.sourceEncoding;
50 warnings = pSettings.warnings;
51 deprecations = pSettings.deprecations;
52 debug = pSettings.debug;
53 }
54
55 public void setTargetVersion( final String pTargetVersion ) {
56 targetVersion = pTargetVersion;
57 }
58
59 public String getTargetVersion() {
60 return targetVersion;
61 }
62
63
64 public void setSourceVersion( final String pSourceVersion ) {
65 sourceVersion = pSourceVersion;
66 }
67
68 public String getSourceVersion() {
69 return sourceVersion;
70 }
71
72
73 public void setSourceEncoding( final String pSourceEncoding ) {
74 sourceEncoding = pSourceEncoding;
75 }
76
77 public String getSourceEncoding() {
78 return sourceEncoding;
79 }
80
81
82 public void setWarnings( final boolean pWarnings ) {
83 warnings = pWarnings;
84 }
85
86 public boolean isWarnings() {
87 return warnings;
88 }
89
90
91 public void setDeprecations( final boolean pDeprecations ) {
92 deprecations = pDeprecations;
93 }
94
95 public boolean isDeprecations() {
96 return deprecations;
97 }
98
99 public void setDebug( final boolean pDebug ) {
100 debug = pDebug;
101 }
102
103 public boolean isDebug() {
104 return debug;
105 }
106
107
108 public void setVerbose( final boolean pVerbose ) {
109 verbose = pVerbose;
110 }
111
112
113 public boolean isVerbose() {
114 return verbose;
115 }
116
117 }