com.mysema.query.types.operation
Class OperationMixin<OP,RT>

java.lang.Object
  extended by com.mysema.query.types.operation.OperationMixin<OP,RT>
Type Parameters:
OP -
RT -
All Implemented Interfaces:
Operation<OP,RT>, Serializable

public class OperationMixin<OP,RT>
extends Object
implements Operation<OP,RT>, Serializable

Author:
tiwe
See Also:
Serialized Form

Constructor Summary
OperationMixin(Expr<RT> self, Operator<OP> operator, List<Expr<?>> args)
           
 
Method Summary
 Expr<RT> asExpr()
           
 Expr<?> getArg(int i)
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationMixin

public OperationMixin(Expr<RT> self,
                      Operator<OP> operator,
                      List<Expr<?>> args)
Method Detail

asExpr

public Expr<RT> asExpr()
Specified by:
asExpr in interface Operation<OP,RT>
Returns:

getArg

public Expr<?> getArg(int i)
Description copied from interface: Operation
Get the argument with the given index

Specified by:
getArg in interface Operation<OP,RT>
Returns:

getArgs

public List<Expr<?>> getArgs()
Description copied from interface: Operation
Get the arguments of this operation

Specified by:
getArgs in interface Operation<OP,RT>
Returns:

getOperator

public Operator<OP> getOperator()
Description copied from interface: Operation
Get the operator symbol for this operation

Specified by:
getOperator in interface Operation<OP,RT>
Returns:

getType

public Class<? extends RT> getType()
Description copied from interface: Operation
Get the type of this operation

Specified by:
getType in interface Operation<OP,RT>
Returns:


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