com.mysema.query.types.expr
Class EConstructor<D>
java.lang.Object
com.mysema.query.types.expr.Expr<D>
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
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 |
EConstructor
public EConstructor(Class<D> type,
Class<?>[] paramTypes,
Expr<?>... args)
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.