Exemple #1
0
 protected boolean calcValue() {
   if (myVersionHigher_15) {
     // return myVirtualMachine.canGetMethodReturnValues();
     try {
       //noinspection HardCodedStringLiteral
       final Method method =
           VirtualMachine.class.getDeclaredMethod("canGetMethodReturnValues");
       final Boolean rv = (Boolean) method.invoke(myVirtualMachine);
       return rv.booleanValue();
     } catch (NoSuchMethodException ignored) {
     } catch (IllegalAccessException ignored) {
     } catch (InvocationTargetException ignored) {
     }
   }
   return false;
 }
 @Override
 public boolean isPrimitive() {
   if (myIsPrimitive == null) {
     final Value value = getValue();
     if (value != null) {
       myIsPrimitive = super.isPrimitive();
     } else {
       myIsPrimitive = DebuggerUtils.isPrimitiveType(myField.typeName());
     }
   }
   return myIsPrimitive.booleanValue();
 }