|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mysema.query.types.ExpressionBase<T> com.mysema.query.types.TemplateExpressionImpl<T>
T
- expression typepublic class TemplateExpressionImpl<T>
Default implementation of the TemplateExpression interface
Constructor Summary | |
---|---|
TemplateExpressionImpl(Class<? extends T> type,
Template template,
Expression<?>... args)
|
|
TemplateExpressionImpl(Class<? extends T> type,
Template template,
List<Expression<?>> args)
|
Method Summary | ||
---|---|---|
|
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context |
|
static
|
create(Class<C> cl,
String template,
Expression<?>... args)
Create a new TemplateExpression with the given template in String form and template arguments |
|
static
|
create(Class<C> cl,
Template template,
Expression<?>... args)
Create a new TemplateExpression with the given template and template arguments |
|
boolean |
equals(Object o)
|
|
Expression<?> |
getArg(int index)
Get the argument with the given index |
|
List<Expression<?>> |
getArgs()
Get the arguments of the custom expression |
|
Template |
getTemplate()
Get the serialization template for this custom expression |
|
int |
hashCode()
|
Methods inherited from class com.mysema.query.types.ExpressionBase |
---|
getType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.mysema.query.types.Expression |
---|
getType |
Constructor Detail |
---|
public TemplateExpressionImpl(Class<? extends T> type, Template template, Expression<?>... args)
public TemplateExpressionImpl(Class<? extends T> type, Template template, List<Expression<?>> args)
Method Detail |
---|
public static <C> Expression<C> create(Class<C> cl, String template, Expression<?>... args)
C
- cl
- template
- args
-
public static <C> Expression<C> create(Class<C> cl, Template template, Expression<?>... args)
C
- cl
- template
- args
-
public Expression<?> getArg(int index)
TemplateExpression
getArg
in interface TemplateExpression<T>
public List<Expression<?>> getArgs()
TemplateExpression
getArgs
in interface TemplateExpression<T>
public Template getTemplate()
TemplateExpression
getTemplate
in interface TemplateExpression<T>
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public <R,C> R accept(Visitor<R,C> v, C context)
Expression
accept
in interface Expression<T>
R
- return typeC
- context typev
- visitorcontext
- context of visit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |