author | enevill |
Tue, 02 Jun 2015 14:28:08 +0000 | |
changeset 30859 | 76147e537436 |
parent 23067 | 7b20ffccad89 |
permissions | -rw-r--r-- |
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
1 |
/* |
5555 | 2 |
* Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. |
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
4 |
* |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
5555 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
5555 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
10 |
* |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
15 |
* accompanied this code). |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
16 |
* |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
20 |
* |
5555 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
24 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
25 |
|
23067 | 26 |
package build.tools.logutil; |
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
27 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
28 |
import java.io.BufferedReader; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
29 |
import java.io.File; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
30 |
import java.io.FileInputStream; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
31 |
import java.io.FileNotFoundException; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
32 |
import java.io.InputStreamReader; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
33 |
import java.io.IOException; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
34 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
35 |
import java.util.LinkedList; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
36 |
import java.util.Queue; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
37 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
38 |
import java.util.regex.Matcher; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
39 |
import java.util.regex.Pattern; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
40 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
41 |
public class Input { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
42 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
43 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
44 |
* The name of the package this class will inhabit. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
45 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
46 |
private String packageName; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
47 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
48 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
49 |
* The name of the generated class. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
50 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
51 |
private String className; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
52 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
53 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
54 |
* The name of the group of exceptions handled by the class. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
55 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
56 |
private String groupName; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
57 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
58 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
59 |
* The group of exceptions. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
60 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
61 |
private Queue<InputException> exceptions; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
62 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
63 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
64 |
* Represents the current state of parsing the input. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
65 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
66 |
private enum State |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
67 |
{ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
68 |
OUTER, |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
69 |
IN_CLASS, |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
70 |
IN_EXCEPTION_LIST |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
71 |
}; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
72 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
73 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
74 |
* Regular expression to match each code line. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
75 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
76 |
private static final Pattern EXCEPTION_INFO_REGEX = |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
77 |
Pattern.compile("(\\w+)\\s*(\\d+)\\s*(\\w+)"); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
78 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
79 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
80 |
* Parses the specified file to create a new {@link Input} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
81 |
* object. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
82 |
* |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
83 |
* @param filename the file to parse. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
84 |
* @throws FileNotFoundException if the file can't be found. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
85 |
* @throws IOException if an I/O error occurs. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
86 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
87 |
public Input(final String filename) |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
88 |
throws FileNotFoundException, IOException { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
89 |
BufferedReader r = |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
90 |
new BufferedReader(new InputStreamReader(new FileInputStream(filename))); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
91 |
State state = State.OUTER; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
92 |
InputException current = null; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
93 |
exceptions = new LinkedList<InputException>(); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
94 |
String line; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
95 |
while ((line = r.readLine()) != null) { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
96 |
// Skip ; comments |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
97 |
if (line.startsWith(";")) |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
98 |
continue; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
99 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
100 |
int index = line.indexOf("("); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
101 |
if (index == -1) |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
102 |
continue; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
103 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
104 |
switch (state) { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
105 |
case OUTER: |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
106 |
state = State.IN_CLASS; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
107 |
String[] classInfo = line.substring(index).split(" "); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
108 |
packageName = classInfo[0].substring(2, classInfo[0].length() - 1); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
109 |
className = classInfo[1].substring(1, classInfo[1].length() - 1); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
110 |
groupName = classInfo[2]; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
111 |
break; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
112 |
case IN_CLASS: |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
113 |
state = State.IN_EXCEPTION_LIST; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
114 |
break; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
115 |
case IN_EXCEPTION_LIST: |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
116 |
boolean inQuote = false; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
117 |
boolean inCode = false; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
118 |
boolean end = false; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
119 |
int start = index + 1; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
120 |
Queue<String> lines = new LinkedList<String>(); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
121 |
for (int a = start; a < line.length(); ++a) { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
122 |
if (line.charAt(a) == '(' && !inCode && !inQuote) { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
123 |
if (current == null) |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
124 |
current = |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
125 |
new InputException(line.substring(start, a).trim()); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
126 |
start = a + 1; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
127 |
inCode = true; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
128 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
129 |
if (line.charAt(a) == '"') |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
130 |
inQuote = !inQuote; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
131 |
if (line.charAt(a) == ')' && !inQuote) { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
132 |
if (inCode) { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
133 |
lines.offer(line.substring(start, a)); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
134 |
inCode = false; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
135 |
} else |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
136 |
end = true; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
137 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
138 |
if (!end && a == line.length() - 1) |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
139 |
line += r.readLine(); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
140 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
141 |
for (String l : lines) { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
142 |
int stringStart = l.indexOf("\"") + 1; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
143 |
int stringEnd = l.indexOf("\"", stringStart); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
144 |
Matcher matcher = EXCEPTION_INFO_REGEX.matcher(l.substring(0, stringStart)); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
145 |
if (matcher.find()) |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
146 |
current.add(new InputCode(matcher.group(1), |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
147 |
Integer.parseInt(matcher.group(2)), |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
148 |
matcher.group(3), |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
149 |
l.substring(stringStart, stringEnd))); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
150 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
151 |
exceptions.offer(current); |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
152 |
current = null; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
153 |
break; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
154 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
155 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
156 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
157 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
158 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
159 |
* Returns the name of this group of exceptions. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
160 |
* |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
161 |
* @return the name of this group of exceptions. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
162 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
163 |
public String getGroupName() |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
164 |
{ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
165 |
return groupName; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
166 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
167 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
168 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
169 |
* Returns the name of the package this class will go in. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
170 |
* |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
171 |
* @return the name of the package. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
172 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
173 |
public String getPackageName() |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
174 |
{ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
175 |
return packageName; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
176 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
177 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
178 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
179 |
* Returns the name of the generated class. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
180 |
* |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
181 |
* @return the name of the class. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
182 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
183 |
public String getClassName() |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
184 |
{ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
185 |
return className; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
186 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
187 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
188 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
189 |
* Returns the exceptions contained in this class. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
190 |
* |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
191 |
* @return the exceptions. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
192 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
193 |
public Queue<InputException> getExceptions() { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
194 |
return exceptions; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
195 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
196 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
197 |
/** |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
198 |
* Returns a textual representation of this input. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
199 |
* |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
200 |
* @return a textual representation. |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
201 |
*/ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
202 |
public String toString() { |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
203 |
return getClass().getName() + |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
204 |
"[packageName=" + packageName + |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
205 |
",className=" + className + |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
206 |
",groupName=" + groupName + |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
207 |
",exceptions=" + exceptions + |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
208 |
"]"; |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
209 |
} |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
210 |
|
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
diff
changeset
|
211 |
} |