com.mysema.query.support
Class NumberConversions<T>

java.lang.Object
  extended by com.mysema.query.types.ExpressionBase<T>
      extended by com.mysema.query.support.NumberConversions<T>
Type Parameters:
T -
All Implemented Interfaces:
Expression<T>, FactoryExpression<T>, Serializable

public class NumberConversions<T>
extends ExpressionBase<T>
implements FactoryExpression<T>

NumberConversions ensures that the results of a projection involving numeric expressions confirm to the types of the numeric expressions

Author:
tiwe
See Also:
Serialized Form

Constructor Summary
NumberConversions(FactoryExpression<T> expr)
           
 
Method Summary
<R,C> R
accept(Visitor<R,C> v, C context)
          Accept the visitor with the given context
 List<Expression<?>> getArgs()
          Get the invocation arguments
 T newInstance(Object... args)
          Create a projection with the given arguments
 
Methods inherited from class com.mysema.query.types.ExpressionBase
getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Expression
getType
 

Constructor Detail

NumberConversions

public NumberConversions(FactoryExpression<T> expr)
Method Detail

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<T>
Type Parameters:
R - return type
C - context type
Parameters:
v - visitor
context - context of visit
Returns:

getArgs

public List<Expression<?>> getArgs()
Description copied from interface: FactoryExpression
Get the invocation arguments

Specified by:
getArgs in interface FactoryExpression<T>
Returns:

newInstance

public T newInstance(Object... args)
Description copied from interface: FactoryExpression
Create a projection with the given arguments

Specified by:
newInstance in interface FactoryExpression<T>
Returns:


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