/** * Visits a UnaryOperation instance * @param unaryOperation The UnaryOperation */ private void visitUnaryOperation(UnaryOperation unaryOperation) { unaryOperation.getOperand().accept(this); if (replace) { unaryOperation.setOperand(toReplace); replace = false; } }
@Override protected void visitUnaryOperation(UnaryOperation node) { if (node == toReplace) { result = replacement; return; } if (node.getOperand() == toReplace) { node.setOperand(replacement); } super.visitUnaryOperation(node); }
@Override protected void visitUnaryOperation(UnaryOperation node) { resultValue = null; node.getOperand().accept(this); if (resultValue != null) { node.setOperand(resultValue); resultValue = null; } }
@Override protected void visitUnaryOperation(UnaryOperation node) { resultValue = null; node.getOperand().accept(this); if (resultValue != null) { node.setOperand(resultValue); resultValue = null; } }
@Override protected void visitUnaryOperation(UnaryOperation node) { node.getOperand().accept(expressionVisitor); if (replaceWith != null) { node.setOperand(replaceWith); replaceWith = null; } }
@Override protected void visitUnaryOperation(UnaryOperation node) { node.getOperand().accept(this); if (result != null) { node.setOperand(result); result = null; } }