@Override public void visitVariableRef(VariableRef vr) { super.visitVariableRef(vr); String identStr = vr.getName() + ""; if ("NULL".equals(identStr)) { vr.replaceBy(nullExpr()); } } int nConstants = 0;
@Override public void visitVariableRef(VariableRef vr) { super.visitVariableRef(vr); String identStr = vr.getName() + ""; if ("NULL".equals(identStr)) { vr.replaceBy(nullExpr()); } } int nConstants = 0;
if (isConstructor) { superConstructorArgs = new ArrayList<Expression>(); superConstructorArgs.add(cast(typeRef(Void.class), nullExpr())); superConstructorArgs.add(expr(iConstructor));
if (isConstructor) { superConstructorArgs = new ArrayList<Expression>(); superConstructorArgs.add(cast(typeRef(Void.class), nullExpr())); superConstructorArgs.add(expr(iConstructor));
Expression.ConditionalExpression ce = new Expression.ConditionalExpression(); ce.setTest(expr(varRef(indirectRetVarName), Expression.BinaryOperator.IsEqual, expr(0))); ce.setThenValue(nullExpr()); ce.setElseValue(finalCall); f.setBody(block(stat(vd), new Statement.Return(ce)));
Expression.ConditionalExpression ce = new Expression.ConditionalExpression(); ce.setTest(expr(varRef(indirectRetVarName), Expression.BinaryOperator.IsEqual, expr(0))); ce.setThenValue(nullExpr()); ce.setElseValue(finalCall); f.setBody(block(stat(vd), new Statement.Return(ce)));
expr(instRef, Expression.BinaryOperator.IsEqual, nullExpr()), initStats.size() == 1 ? initStats.get(0) : new Statement.Block(initStats), null),
expr(instRef, Expression.BinaryOperator.IsEqual, nullExpr()), initStats.size() == 1 ? initStats.get(0) : new Statement.Block(initStats), null),