@Override public void visitUnaryOperation(UnaryOperation unaryOperation) { incr(); space(); System.out.println("Unary operator: " + unaryOperation.getType()); unaryOperation.getExpressionStatement().accept(this); decr(); }
public boolean visit(UnaryOperation s) throws Exception { Map<String, String> parameters = createInitialParameters(s); parameters.put("operator", s.getOperator()); xmlWriter.startTag("UnaryOperation", parameters); return true; }
@Override public void visitUnaryOperation(UnaryOperation unaryOperation) { unaryOperation.getExpressionStatement().accept(this); }