Skip to main content
summaryrefslogtreecommitdiffstats
blob: 503b1a18e117c6b4d813dfb0dd4bd437b83ebf40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*******************************************************************************
 * Copyright (c) 2004, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.wst.command.internal.env.core.fragment;

/**
  * This interface can be used when a conditional object needs to be returned.
**/
public interface LoopCondition
{
  /**
    * Evaluates a loop condition.
    *
    * @param loop the loop fragment that is being evaluated.
    * @param fragment the child fragment of the loop 
    *        under evaluation.  Note: fragment can be null.
    * @return returns an object based on some evaluated condition.
  **/
  public boolean evaluate( LoopFragment loop, CommandFragment fragment );
}

Back to the top