jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/model/nav/NavigatorImpl.java
equal
deleted
inserted
replaced
54 public NType getBaseClass(NType nt, NClass base) { |
54 public NType getBaseClass(NType nt, NClass base) { |
55 if(nt instanceof EagerNType) { |
55 if(nt instanceof EagerNType) { |
56 EagerNType ent = (EagerNType) nt; |
56 EagerNType ent = (EagerNType) nt; |
57 if (base instanceof EagerNClass) { |
57 if (base instanceof EagerNClass) { |
58 EagerNClass enc = (EagerNClass) base; |
58 EagerNClass enc = (EagerNClass) base; |
59 return create(REFLECTION.getBaseClass(ent.t, enc.c)); |
59 return create(Utils.REFLECTION_NAVIGATOR.getBaseClass(ent.t, enc.c)); |
60 } |
60 } |
61 // lazy class can never be a base type of an eager type |
61 // lazy class can never be a base type of an eager type |
62 return null; |
62 return null; |
63 } |
63 } |
64 if (nt instanceof NClassByJClass) { |
64 if (nt instanceof NClassByJClass) { |
174 } |
174 } |
175 |
175 |
176 public NType getTypeArgument(NType nt, int i) { |
176 public NType getTypeArgument(NType nt, int i) { |
177 if (nt instanceof EagerNType) { |
177 if (nt instanceof EagerNType) { |
178 EagerNType ent = (EagerNType) nt; |
178 EagerNType ent = (EagerNType) nt; |
179 return create(REFLECTION.getTypeArgument(ent.t,i)); |
179 return create(Utils.REFLECTION_NAVIGATOR.getTypeArgument(ent.t,i)); |
180 } |
180 } |
181 if (nt instanceof NClassByJClass) { |
181 if (nt instanceof NClassByJClass) { |
182 NClassByJClass nnt = (NClassByJClass) nt; |
182 NClassByJClass nnt = (NClassByJClass) nt; |
183 return ref(nnt.clazz.getTypeParameters().get(i)); |
183 return ref(nnt.clazz.getTypeParameters().get(i)); |
184 } |
184 } |
187 } |
187 } |
188 |
188 |
189 public boolean isParameterizedType(NType nt) { |
189 public boolean isParameterizedType(NType nt) { |
190 if (nt instanceof EagerNType) { |
190 if (nt instanceof EagerNType) { |
191 EagerNType ent = (EagerNType) nt; |
191 EagerNType ent = (EagerNType) nt; |
192 return REFLECTION.isParameterizedType(ent.t); |
192 return Utils.REFLECTION_NAVIGATOR.isParameterizedType(ent.t); |
193 } |
193 } |
194 if (nt instanceof NClassByJClass) { |
194 if (nt instanceof NClassByJClass) { |
195 NClassByJClass nnt = (NClassByJClass) nt; |
195 NClassByJClass nnt = (NClassByJClass) nt; |
196 return nnt.clazz.isParameterized(); |
196 return nnt.clazz.isParameterized(); |
197 } |
197 } |
302 public String getPackageName(NClass clazz) { |
302 public String getPackageName(NClass clazz) { |
303 // TODO: implement this method later |
303 // TODO: implement this method later |
304 throw new UnsupportedOperationException(); |
304 throw new UnsupportedOperationException(); |
305 } |
305 } |
306 |
306 |
307 public NClass findClass(String className, NClass referencePoint) { |
307 @Override |
308 // TODO: implement this method later |
308 public NClass loadObjectFactory(NClass referencePoint, String pkg) { |
309 throw new UnsupportedOperationException(); |
309 throw new UnsupportedOperationException(); |
310 } |
310 } |
311 |
311 |
312 public boolean isBridgeMethod(Void method) { |
312 public boolean isBridgeMethod(Void method) { |
313 throw new UnsupportedOperationException(); |
313 throw new UnsupportedOperationException(); |