com.mysema.query.types
Class OperationImpl<RT>

java.lang.Object
  extended by com.mysema.query.types.ExpressionBase<RT>
      extended by com.mysema.query.types.OperationImpl<RT>
Type Parameters:
RT -
All Implemented Interfaces:
Expression<RT>, Operation<RT>, Serializable
Direct Known Subclasses:
PredicateOperation

public class OperationImpl<RT>
extends ExpressionBase<RT>
implements Operation<RT>

OperationImpl is the default implementation of the Operation interface

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.ExpressionBase
type
 
Constructor Summary
OperationImpl(Class<? extends RT> type, Operator<? super RT> operator, Expression<?>... args)
           
OperationImpl(Class<? extends RT> type, Operator<? super RT> operator, List<Expression<?>> args)
           
 
Method Summary
<R,C> R
accept(Visitor<R,C> v, C context)
          Accept the visitor with the given context
static
<RT> Operation<RT>
create(Class<? extends RT> type, Operator<? super RT> operator, Expression<?>... args)
           
 boolean equals(Object o)
           
 Expression<?> getArg(int i)
          Get the argument with the given index
 List<Expression<?>> getArgs()
          Get the arguments of this operation
 Operator<? super RT> getOperator()
          Get the operator symbol for this operation
 int hashCode()
           
 
Methods inherited from class com.mysema.query.types.ExpressionBase
getType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Expression
getType
 

Constructor Detail

OperationImpl

public OperationImpl(Class<? extends RT> type,
                     Operator<? super RT> operator,
                     Expression<?>... args)

OperationImpl

public OperationImpl(Class<? extends RT> type,
                     Operator<? super RT> operator,
                     List<Expression<?>> args)
Method Detail

create

public static <RT> Operation<RT> create(Class<? extends RT> type,
                                        Operator<? super RT> operator,
                                        Expression<?>... args)

getArg

public Expression<?> 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<Expression<?>> 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:

equals

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

accept

public <R,C> R accept(Visitor<R,C> v,
                      C context)
Description copied from interface: Expression
Accept the visitor with the given context

Specified by:
accept in interface Expression<RT>
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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