private boolean needDoubleMod(BinopExpr arg0, String symbol) {
   if (symbol.equals("%") == false) return false;
   if (!arg0.getOp1().getType().equals(DoubleType.v())
       && !arg0.getOp1().getType().equals(FloatType.v())) return false;
   if (!arg0.getOp2().getType().equals(DoubleType.v())
       && !arg0.getOp2().getType().equals(FloatType.v())) return false;
   return true;
 }
Exemplo n.º 2
0
 /** @throws Exception */
 @Test
 public void testGetValue_null() throws Exception {
   MockResultSet rs = new MockResultSet();
   ArrayMap rowData = new ArrayMap();
   rowData.put("hoge", null);
   rs.addRowData(rowData);
   rs.next();
   FloatType type = new FloatType();
   assertNull(type.getValue(rs, 1));
 }
Exemplo n.º 3
0
 public void outAFloatBaseType(AFloatBaseType node) {
   mProductions.addLast(FloatType.v());
 }