org.quattor.pan.dml.operators
Class While
java.lang.Object
org.quattor.pan.dml.AbstractOperation
org.quattor.pan.dml.operators.While
- All Implemented Interfaces:
- Operation
public final class While
- extends AbstractOperation
Implements a while operation. If the body of the loop is never run, the
result is Undef; otherwise, the result is that of the last operation executed
in the body of the loop.
- Author:
- loomis
newOperation
public static Operation newOperation(SourceRange sourceRange,
Operation... ops)
throws SyntaxException
- Throws:
SyntaxException
execute
public Element execute(Context context)
- Description copied from interface:
Operation
- Execute this operation within the given context. If an error occurs, an
EvaluationException will be thrown with the details.
- Specified by:
execute in interface Operation- Specified by:
execute in class AbstractOperation
- Parameters:
context - evaluation context for the statement
- Returns:
- Element produced by running operation
Copyright © 2012 Quattor. All Rights Reserved.