KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > gcc > generator > GenOptions


1 /*
2  * Copyright 2004 The Apache Software Foundation or its licensors, as
3  * applicable.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14  * implied.
15  *
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */

19 package gcc.generator;
20
21 public class GenOptions
22 {
23     protected String _genDir = "./";
24     protected boolean _overwrite = false;
25     protected boolean _verbose = false;
26
27     public GenOptions()
28     {
29     }
30
31     public GenOptions(String genDir, boolean overwrite, boolean verbose)
32     {
33         _genDir = genDir;
34         _overwrite = overwrite;
35         _verbose = verbose;
36     }
37
38     public String getGenDir()
39     {
40         return _genDir;
41     }
42
43     public void setGenDir(String genDir)
44     {
45         _genDir = genDir;
46     }
47
48     public boolean isOverwrite()
49     {
50         return _overwrite;
51     }
52
53     public void setOverwrite(boolean overwrite)
54     {
55         _overwrite = overwrite;
56     }
57
58     public boolean isVerbose()
59     {
60         return _verbose;
61     }
62
63     public void setVerbose(boolean verbose)
64     {
65         _verbose = verbose;
66     }
67
68 }
69
Popular Tags