KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > systest > task > ScenarioJClassStub


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

18 package org.apache.activemq.systest.task;
19
20 import org.codehaus.jam.JAnnotation;
21 import org.codehaus.jam.JAnnotationValue;
22 import org.codehaus.jam.JClass;
23 import org.codehaus.jam.JComment;
24 import org.codehaus.jam.JConstructor;
25 import org.codehaus.jam.JElement;
26 import org.codehaus.jam.JField;
27 import org.codehaus.jam.JMethod;
28 import org.codehaus.jam.JPackage;
29 import org.codehaus.jam.JProperty;
30 import org.codehaus.jam.JSourcePosition;
31 import org.codehaus.jam.JamClassLoader;
32 import org.codehaus.jam.visitor.JVisitor;
33
34 /**
35  *
36  * @version $Revision: 1.1 $
37  */

38 public class ScenarioJClassStub implements JClass {
39     protected static final String JavaDoc[] EMPTY_ARRAY = {};
40
41     private final String JavaDoc qualifiedName;
42     private final String JavaDoc[] interfaceNames;
43     private final String JavaDoc simpleName;
44     private JClass[] interfaces;
45
46     public ScenarioJClassStub(String JavaDoc qualifiedName, String JavaDoc[] interfaceNames) {
47         this.qualifiedName = qualifiedName;
48         this.interfaceNames = interfaceNames;
49
50         int idx = qualifiedName.lastIndexOf('.');
51         if (idx > 0) {
52             this.simpleName = qualifiedName.substring(idx + 1);
53         }
54         else {
55             this.simpleName = qualifiedName;
56         }
57     }
58
59     public JPackage getContainingPackage() {
60         return null;
61     }
62
63     public JClass getSuperclass() {
64         return null;
65     }
66
67     public JClass[] getInterfaces() {
68         if (interfaces == null) {
69             int size = interfaceNames.length;
70             interfaces = new JClass[size];
71             for (int i = 0; i < interfaceNames.length; i++) {
72                 interfaces[i] = new ScenarioJClassStub(interfaceNames[i], EMPTY_ARRAY);
73             }
74         }
75         return interfaces;
76     }
77
78     public JField[] getFields() {
79         return null;
80     }
81
82     public JField[] getDeclaredFields() {
83         return null;
84     }
85
86     public JMethod[] getMethods() {
87         return null;
88     }
89
90     public JMethod[] getDeclaredMethods() {
91         return null;
92     }
93
94     public JConstructor[] getConstructors() {
95         return null;
96     }
97
98     public JProperty[] getProperties() {
99         return null;
100     }
101
102     public JProperty[] getDeclaredProperties() {
103         return null;
104     }
105
106     public boolean isInterface() {
107         return false;
108     }
109
110     public boolean isAnnotationType() {
111         return false;
112     }
113
114     public boolean isPrimitiveType() {
115         return false;
116     }
117
118     public boolean isBuiltinType() {
119         return false;
120     }
121
122     public Class JavaDoc getPrimitiveClass() {
123         return null;
124     }
125
126     public boolean isFinal() {
127         return false;
128     }
129
130     public boolean isStatic() {
131         return false;
132     }
133
134     public boolean isAbstract() {
135         return false;
136     }
137
138     public boolean isVoidType() {
139         return false;
140     }
141
142     public boolean isObjectType() {
143         return false;
144     }
145
146     public boolean isArrayType() {
147         return false;
148     }
149
150     public JClass getArrayComponentType() {
151         return null;
152     }
153
154     public int getArrayDimensions() {
155         return 0;
156     }
157
158     public boolean isAssignableFrom(JClass arg0) {
159         return false;
160     }
161
162     public JClass[] getClasses() {
163         return null;
164     }
165
166     public JClass getContainingClass() {
167         return null;
168     }
169
170     public String JavaDoc getFieldDescriptor() {
171         return null;
172     }
173
174     public boolean isEnumType() {
175         return false;
176     }
177
178     public JamClassLoader getClassLoader() {
179         return null;
180     }
181
182     public JClass forName(String JavaDoc arg0) {
183         return null;
184     }
185
186     public JClass[] getImportedClasses() {
187         return null;
188     }
189
190     public JPackage[] getImportedPackages() {
191         return null;
192     }
193
194     public boolean isUnresolvedType() {
195         return false;
196     }
197
198     public int getModifiers() {
199         return 0;
200     }
201
202     public boolean isPackagePrivate() {
203         return false;
204     }
205
206     public boolean isPrivate() {
207         return false;
208     }
209
210     public boolean isProtected() {
211         return false;
212     }
213
214     public boolean isPublic() {
215         return false;
216     }
217
218     public JAnnotation[] getAnnotations() {
219         return null;
220     }
221
222     public JAnnotation getAnnotation(Class JavaDoc arg0) {
223         return null;
224     }
225
226     public Object JavaDoc getAnnotationProxy(Class JavaDoc arg0) {
227         return null;
228     }
229
230     public JAnnotation getAnnotation(String JavaDoc arg0) {
231         return null;
232     }
233
234     public JAnnotationValue getAnnotationValue(String JavaDoc arg0) {
235         return null;
236     }
237
238     public JComment getComment() {
239         return null;
240     }
241
242     public JAnnotation[] getAllJavadocTags() {
243         return null;
244     }
245
246     public JElement getParent() {
247         return null;
248     }
249
250     public String JavaDoc getSimpleName() {
251         return simpleName;
252     }
253
254     public String JavaDoc getQualifiedName() {
255         return qualifiedName;
256     }
257
258     public JSourcePosition getSourcePosition() {
259         return null;
260     }
261
262     public void accept(JVisitor arg0) {
263     }
264
265     public Object JavaDoc getArtifact() {
266         return null;
267     }
268
269 }
270
Popular Tags