com.mysema.query.types.operation
Interface Operation<OP,RT>

All Known Implementing Classes:
OBoolean, OComparable, ODate, ODateTime, ONumber, OperationMixin, OSimple, OString, OTime

public interface Operation<OP,RT>

Operation represents an operation with operator and arguments

Version:
$Id$
Author:
tiwe

Method Summary
 Expr<RT> asExpr()
           
 Expr<?> getArg(int index)
          Get the argument with the given index
 List<Expr<?>> getArgs()
          Get the arguments of this operation
 Operator<OP> getOperator()
          Get the operator symbol for this operation
 Class<? extends RT> getType()
          Get the type of this operation
 

Method Detail

asExpr

Expr<RT> asExpr()
Returns:

getArg

Expr<?> getArg(int index)
Get the argument with the given index

Parameters:
index -
Returns:

getArgs

List<Expr<?>> getArgs()
Get the arguments of this operation

Returns:

getOperator

Operator<OP> getOperator()
Get the operator symbol for this operation

Returns:

getType

Class<? extends RT> getType()
Get the type of this operation

Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.