protected EvaluationResult evaluateAnd(IEvaluationContext scope) throws CoreException { if (fExpressions == null) return EvaluationResult.TRUE; EvaluationResult result= EvaluationResult.TRUE; for (Expression expression : fExpressions) { result= result.and(expression.evaluate(scope)); // keep iterating even if we have a not loaded found. It can be // that we find a false which will result in a better result. if (result == EvaluationResult.FALSE) return result; } return result; }
protected EvaluationResult evaluateAnd(IEvaluationContext scope) throws CoreException { if (fExpressions == null) return EvaluationResult.TRUE; EvaluationResult result= EvaluationResult.TRUE; for (Iterator<Expression> iter= fExpressions.iterator(); iter.hasNext();) { Expression expression= iter.next(); result= result.and(expression.evaluate(scope)); // keep iterating even if we have a not loaded found. It can be // that we find a false which will result in a better result. if (result == EvaluationResult.FALSE) return result; } return result; }
protected EvaluationResult evaluateAnd(IEvaluationContext scope) throws CoreException { if (fExpressions == null) return EvaluationResult.TRUE; EvaluationResult result= EvaluationResult.TRUE; for (Iterator<Expression> iter= fExpressions.iterator(); iter.hasNext();) { Expression expression= iter.next(); result= result.and(expression.evaluate(scope)); // keep iterating even if we have a not loaded found. It can be // that we find a false which will result in a better result. if (result == EvaluationResult.FALSE) return result; } return result; }
protected EvaluationResult evaluateAnd(IEvaluationContext scope) throws CoreException { if (fExpressions == null) return EvaluationResult.TRUE; EvaluationResult result= EvaluationResult.TRUE; for (Iterator iter= fExpressions.iterator(); iter.hasNext();) { Expression expression= (Expression)iter.next(); result= result.and(expression.evaluate(scope)); // keep iterating even if we have a not loaded found. It can be // that we find a false which will result in a better result. if (result == EvaluationResult.FALSE) return result; } return result; }
public EvaluationResult evaluate(IEvaluationContext scope) throws CoreException { if (fExpressions == null) { return EvaluationResult.TRUE; } EvaluationResult result = EvaluationResult.TRUE; for (Iterator iter = fExpressions.iterator(); iter.hasNext();) { Expression expression = (Expression) iter.next(); result = result.and(expression.evaluate(scope)); // keep iterating even if we have a not loaded found. It can be // that we find a false which will result in a better result. if (result == EvaluationResult.FALSE) { return result; } } return result; }
protected EvaluationResult evaluateAnd(IEvaluationContext scope) throws CoreException { if (fExpressions == null) { return EvaluationResult.TRUE; } EvaluationResult result = EvaluationResult.TRUE; for (Iterator iter = fExpressions.iterator(); iter.hasNext();) { Expression expression = (Expression) iter.next(); result = result.and(expression.evaluate(scope)); // keep iterating even if we have a not loaded found. It can be // that we find a false which will result in a better result. if (result == EvaluationResult.FALSE) { return result; } } return result; }