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; }
/** @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)); }
public void outAFloatBaseType(AFloatBaseType node) { mProductions.addLast(FloatType.v()); }