@Override public void visitPrefixExpression(final PrefixExpression expression) { inAssignment = expression.getExpression() instanceof VariableExpression; super.visitPrefixExpression(expression); inAssignment = false; checkPrePostfixOperation(expression.getExpression(), expression); }
public void evaluatePrefixMethod(PrefixExpression expression) { int type = expression.getOperation().getType(); switch (type) { case Types.PLUS_PLUS: evaluatePrefixMethod(type, "next", expression.getExpression(), expression); break; case Types.MINUS_MINUS: evaluatePrefixMethod(type, "previous", expression.getExpression(), expression); break; } }
public void visitPrefixExpression(PrefixExpression expression) { expression.getExpression().visit(this); }