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

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

public class EConstructor<D>
extends Expr<D>

EConstructor represents a constructor invocation

Author:
tiwe
See Also:
Serialized Form

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)
           
 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
 
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
 

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)

getArgs

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

Returns:

getArg

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

Parameters:
index -
Returns:

getJavaConstructor

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

Returns:

accept

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


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