org.quattor.pan.dml.operators
Class Mod

java.lang.Object
  extended by org.quattor.pan.dml.AbstractOperation
      extended by org.quattor.pan.dml.operators.Mod
All Implemented Interfaces:
Operation

public final class Mod
extends AbstractOperation

Implements a modulus operation for long arguments.

Author:
loomis

Field Summary
 
Fields inherited from class org.quattor.pan.dml.AbstractOperation
ops, sourceRange
 
Method Summary
 Element execute(Context context)
          Execute this operation within the given context.
static Element execute(SourceRange sourceRange, LongProperty a, LongProperty b)
           
static Operation newOperation(SourceRange sourceRange, Operation... ops)
           
 
Methods inherited from class org.quattor.pan.dml.AbstractOperation
calculateArgs, calculateTerms, checkInvalidSelfContext, checkRestrictedContext, getOperations, getSourceRange, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

execute

public static Element execute(SourceRange sourceRange,
                              LongProperty a,
                              LongProperty b)


Copyright © 2011 Quattor. All Rights Reserved.