com.mysema.query.types
Class ConstructorExpression<D>
java.lang.Object
com.mysema.query.types.ExpressionBase<D>
com.mysema.query.types.ConstructorExpression<D>
- Type Parameters:
D
- Java type
- All Implemented Interfaces:
- Expression<D>, FactoryExpression<D>, Serializable
public class ConstructorExpression<D>
- extends ExpressionBase<D>
- implements FactoryExpression<D>
ConstructorExpression represents a constructor invocation
- Author:
- tiwe
- See Also:
- Serialized Form
ConstructorExpression
public ConstructorExpression(Class<D> type,
Class<?>[] paramTypes,
Expression<?>... args)
ConstructorExpression
public ConstructorExpression(Class<D> type,
Class<?>[] paramTypes,
List<Expression<?>> args)
create
public static <D> ConstructorExpression<D> create(Class<D> type,
Expression<?>... args)
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<D>
- Returns:
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getArgs
public final List<Expression<?>> getArgs()
- Description copied from interface:
FactoryExpression
- Get the constructor invocation arguments
- Specified by:
getArgs
in interface FactoryExpression<D>
- Returns:
newInstance
public D newInstance(Object... args)
- Description copied from interface:
FactoryExpression
- Create a projection with the given arguments
- Specified by:
newInstance
in interface FactoryExpression<D>
- Returns:
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.