com.mysema.query.types
Interface Operation<RT>

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

public interface Operation<RT>

Operation represents an operation with operator and arguments

Version:
$Id$
Author:
tiwe

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

Method Detail

asExpr

Expr<RT> asExpr()
Cast to Expr

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<? super RT> 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.