com.mysema.query.types.expr
Class OperationMixin<RT>

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

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

Author:
tiwe
See Also:
Serialized Form

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

Constructor Detail

OperationMixin

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

asExpr

public Expr<RT> asExpr()
Description copied from interface: Operation
Cast to Expr

Specified by:
asExpr in interface Operation<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<RT>
Returns:

getArgs

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

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

getOperator

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

Specified by:
getOperator in interface Operation<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<RT>
Returns:

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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