< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/jdi/MethodImpl.java

Print this page

199                declaringType() instanceof InterfaceType;
200     }
201 
202     public boolean isSynchronized() {
203         return isModifierSet(VMModifiers.SYNCHRONIZED);
204     }
205 
206     public boolean isNative() {
207         return isModifierSet(VMModifiers.NATIVE);
208     }
209 
210     public boolean isVarArgs() {
211         return isModifierSet(VMModifiers.VARARGS);
212     }
213 
214     public boolean isBridge() {
215         return isModifierSet(VMModifiers.BRIDGE);
216     }
217 
218     public boolean isConstructor() {
219         return name().equals("<init>");
220     }
221 
222     public boolean isStaticInitializer() {
223         return name().equals("<clinit>");
224     }
225 
226     public boolean isObsolete() {
227         try {
228             return JDWP.Method.IsObsolete.process(vm,
229                                     declaringType, ref).isObsolete;
230         } catch (JDWPException exc) {
231             throw exc.toJDIException();
232         }
233     }
234 
235     /*
236      * A container class for the return value to allow
237      * proper type-checking.
238      */
239     class ReturnContainer implements ValueContainer {

199                declaringType() instanceof InterfaceType;
200     }
201 
202     public boolean isSynchronized() {
203         return isModifierSet(VMModifiers.SYNCHRONIZED);
204     }
205 
206     public boolean isNative() {
207         return isModifierSet(VMModifiers.NATIVE);
208     }
209 
210     public boolean isVarArgs() {
211         return isModifierSet(VMModifiers.VARARGS);
212     }
213 
214     public boolean isBridge() {
215         return isModifierSet(VMModifiers.BRIDGE);
216     }
217 
218     public boolean isConstructor() {
219         return name().equals("<init>") || name().equals("<vnew>");
220     }
221 
222     public boolean isStaticInitializer() {
223         return name().equals("<clinit>");
224     }
225 
226     public boolean isObsolete() {
227         try {
228             return JDWP.Method.IsObsolete.process(vm,
229                                     declaringType, ref).isObsolete;
230         } catch (JDWPException exc) {
231             throw exc.toJDIException();
232         }
233     }
234 
235     /*
236      * A container class for the return value to allow
237      * proper type-checking.
238      */
239     class ReturnContainer implements ValueContainer {
< prev index next >