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