Exemplo n.º 1
0
 @Override
 public void visitPostfixExpression(final PostfixExpression expression) {
   inAssignment = expression.getExpression() instanceof VariableExpression;
   super.visitPostfixExpression(expression);
   inAssignment = false;
   checkPrePostfixOperation(expression.getExpression(), expression);
 }
 public void evaluatePostfixMethod(PostfixExpression expression) {
   int op = expression.getOperation().getType();
   switch (op) {
     case Types.PLUS_PLUS:
       evaluatePostfixMethod(op, "next", expression.getExpression(), expression);
       break;
     case Types.MINUS_MINUS:
       evaluatePostfixMethod(op, "previous", expression.getExpression(), expression);
       break;
   }
 }
 public void visitPostfixExpression(PostfixExpression expression) {
   expression.getExpression().visit(this);
 }