com.mysema.query.types
Class EConstructor<D>

java.lang.Object
  extended by com.mysema.query.types.Expr<D>
      extended by com.mysema.query.types.expr.ESimple<D>
          extended by com.mysema.query.types.EConstructor<D>
Type Parameters:
D - Java type
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EArrayConstructor

public class EConstructor<D>
extends ESimple<D>

EConstructor represents a constructor invocation

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
EConstructor(Class<D> type, Class<?>[] paramTypes, Expr<?>... args)
           
 
Method Summary
 void accept(Visitor v)
           
static
<D> EConstructor<D>
create(Class<D> type, Expr<?>... args)
           
 boolean equals(Object obj)
           
 Expr<?> getArg(int index)
          Get the constructor invocation argument with the given index
 List<Expr<?>> getArgs()
          Get the constructor invocation arguments
 Constructor<D> getJavaConstructor()
          Returns the "real" constructor that matches the Constructor expression
 int hashCode()
           
 
Methods inherited from class com.mysema.query.types.expr.ESimple
as, count, countDistinct, eq, eq, in, in, in, ne, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
asExpr, getType, notIn, notIn, notIn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EConstructor

public EConstructor(Class<D> type,
                    Class<?>[] paramTypes,
                    Expr<?>... args)
Method Detail

create

public static <D> EConstructor<D> create(Class<D> type,
                                         Expr<?>... args)

accept

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

equals

public boolean equals(Object obj)
Specified by:
equals in class Expr<D>

hashCode

public int hashCode()
Overrides:
hashCode in class Expr<D>

getArg

public final Expr<?> getArg(int index)
Get the constructor invocation argument with the given index

Parameters:
index -
Returns:

getArgs

public final List<Expr<?>> getArgs()
Get the constructor invocation arguments

Returns:

getJavaConstructor

public Constructor<D> getJavaConstructor()
Returns the "real" constructor that matches the Constructor expression

Returns:


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