@Override protected Expr clone(Map<Expr, Expr> cache) { Expr known = cache.get(this); if (known != null) { return known; } ConditionalExpr copy = new ConditionalExpr(); cache.put(this, copy); copy.setCondition(condition != null ? condition.clone(cache) : null); copy.setConsequent(consequent != null ? consequent.clone(cache) : null); copy.setAlternative(alternative != null ? alternative.clone(cache) : null); return copy; } }
ConditionalExpr expr = new ConditionalExpr(); expr.setCondition(readExpr(input)); expr.setConsequent(readExpr(input));
VariableExpr secondLhs = (VariableExpr) secondAssignment.getLeftValue(); if (firstLhs.getIndex() == secondLhs.getIndex()) { ConditionalExpr conditionalExpr = new ConditionalExpr(); conditionalExpr.setCondition(statement.getCondition()); conditionalExpr.setConsequent(firstAssignment.getRightValue());
@Override protected Expr clone(Map<Expr, Expr> cache) { Expr known = cache.get(this); if (known != null) { return known; } ConditionalExpr copy = new ConditionalExpr(); cache.put(this, copy); copy.setCondition(condition != null ? condition.clone(cache) : null); copy.setConsequent(consequent != null ? consequent.clone(cache) : null); copy.setAlternative(alternative != null ? alternative.clone(cache) : null); return copy; } }
ConditionalExpr expr = new ConditionalExpr(); expr.setCondition(readExpr(input)); expr.setConsequent(readExpr(input));
VariableExpr secondLhs = (VariableExpr) secondAssignment.getLeftValue(); if (firstLhs.getIndex() == secondLhs.getIndex()) { ConditionalExpr conditionalExpr = new ConditionalExpr(); conditionalExpr.setCondition(statement.getCondition()); conditionalExpr.setConsequent(firstAssignment.getRightValue());