Esempio n. 1
0
 public static Value createValue(VirtualMachineProxyImpl vm, String expectedType, char value) {
   if (PsiType.CHAR.getPresentableText().equals(expectedType)) {
     return vm.mirrorOf(value);
   }
   if (PsiType.LONG.getPresentableText().equals(expectedType)) {
     return vm.mirrorOf((long) value);
   }
   if (PsiType.INT.getPresentableText().equals(expectedType)) {
     return vm.mirrorOf((int) value);
   }
   if (PsiType.SHORT.getPresentableText().equals(expectedType)) {
     return vm.mirrorOf((short) value);
   }
   if (PsiType.BYTE.getPresentableText().equals(expectedType)) {
     return vm.mirrorOf((byte) value);
   }
   return null;
 }