Exemplo n.º 1
0
 @Override
 public void visitUnaryOperation(UnaryOperation unaryOperation) {
   incr();
   space();
   System.out.println("Unary operator: " + unaryOperation.getType());
   unaryOperation.getExpressionStatement().accept(this);
   decr();
 }
Exemplo n.º 2
0
 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);
 }