org.quattor.pan.dml.functions
Class Prepend

java.lang.Object
  extended by org.quattor.pan.dml.AbstractOperation
      extended by org.quattor.pan.dml.functions.BuiltInFunction
          extended by org.quattor.pan.dml.functions.Prepend
All Implemented Interfaces:
Operation

public final class Prepend
extends BuiltInFunction

Will prepend a value to the beginning of a list. It will create the referenced list if necessary.

Author:
loomis

Field Summary
 
Fields inherited from class org.quattor.pan.dml.functions.BuiltInFunction
name
 
Fields inherited from class org.quattor.pan.dml.AbstractOperation
ops, sourceRange
 
Constructor Summary
protected Prepend(SourceRange sourceRange, Operation... operations)
           
 
Method Summary
 Element execute(Context context)
          Execute this operation within the given context.
static Operation getInstance(SourceRange sourceRange, Operation... operations)
           
 
Methods inherited from class org.quattor.pan.dml.functions.BuiltInFunction
throwExceptionIfCompileTimeContext, toString
 
Methods inherited from class org.quattor.pan.dml.AbstractOperation
calculateArgs, calculateTerms, checkInvalidSelfContext, checkRestrictedContext, getOperations, getSourceRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Prepend

protected Prepend(SourceRange sourceRange,
                  Operation... operations)
           throws SyntaxException
Throws:
SyntaxException
Method Detail

getInstance

public static Operation getInstance(SourceRange sourceRange,
                                    Operation... operations)
                             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 © 2011 Quattor. All Rights Reserved.