com.mysema.query.types.operation
Class OSimple<OpType,D>

java.lang.Object
  extended by com.mysema.query.types.expr.Expr<D>
      extended by com.mysema.query.types.operation.OSimple<OpType,D>
Type Parameters:
OpType -
D -
All Implemented Interfaces:
Operation<OpType,D>, Serializable

public class OSimple<OpType,D>
extends Expr<D>
implements Operation<OpType,D>

OSimple represents a simple operation expression

Author:
tiwe
See Also:
Serialized Form

Method Summary
 void accept(Visitor v)
           
 Expr<D> asExpr()
           
static
<OpType,D> Expr<D>
create(Class<? extends D> type, Operator<OpType> op, Expr<?>... args)
          Factory method
 Expr<?> getArg(int index)
          Get the argument with the given index
 List<Expr<?>> getArgs()
          Get the arguments of this operation
 Operator<OpType> getOperator()
          Get the operator symbol for this operation
 
Methods inherited from class com.mysema.query.types.expr.Expr
count, countAll, countDistinct, eq, eq, getType, hashCode, in, in, in, ne, ne, notIn, notIn, notIn, toString, when, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.operation.Operation
getType
 

Method Detail

create

public static <OpType,D> Expr<D> create(Class<? extends D> type,
                                        Operator<OpType> op,
                                        Expr<?>... args)
Factory method

Type Parameters:
OpType -
D -
Parameters:
type -
op -
args -
Returns:

accept

public void accept(Visitor v)
Specified by:
accept in class Expr<D>

asExpr

public Expr<D> asExpr()
Specified by:
asExpr in interface Operation<OpType,D>
Returns:

getArg

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

Specified by:
getArg in interface Operation<OpType,D>
Returns:

getArgs

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

Specified by:
getArgs in interface Operation<OpType,D>
Returns:

getOperator

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

Specified by:
getOperator in interface Operation<OpType,D>
Returns:


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