com.mysema.query.types
Class ConstructorExpression<T>
java.lang.Object
com.mysema.query.types.ExpressionBase<T>
com.mysema.query.types.ConstructorExpression<T>
- Type Parameters:
T
- expression type
- All Implemented Interfaces:
- Expression<T>, FactoryExpression<T>, Serializable
public class ConstructorExpression<T>
- extends ExpressionBase<T>
- implements FactoryExpression<T>
ConstructorExpression represents a constructor invocation
- Author:
- tiwe
- See Also:
- Serialized Form
ConstructorExpression
public ConstructorExpression(Class<T> type,
Class<?>[] paramTypes,
Expression<?>... args)
ConstructorExpression
public ConstructorExpression(Class<T> 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<T>
- Type Parameters:
R
- return typeC
- context type- Parameters:
v
- visitorcontext
- context of visit
- 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 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-2011 Mysema Ltd. All Rights Reserved.