T
- expression typepublic class SimpleTemplate<T> extends SimpleExpression<T> implements TemplateExpression<T>
mixin
Constructor and Description |
---|
SimpleTemplate(Class<? extends T> type,
Template template,
com.google.common.collect.ImmutableList<?> args) |
Modifier and Type | Method and Description |
---|---|
<R,C> R |
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context
|
static <T> SimpleExpression<T> |
create(Class<? extends T> type,
String template) |
static <T> SimpleExpression<T> |
create(Class<? extends T> type,
String template,
Object... args) |
static <T> SimpleExpression<T> |
create(Class<? extends T> type,
String template,
Object one) |
static <T> SimpleExpression<T> |
create(Class<? extends T> type,
String template,
Object one,
Object two) |
static <T> SimpleExpression<T> |
create(Class<? extends T> type,
Template template,
Object... args) |
Object |
getArg(int index)
Get the argument with the given index
|
List<?> |
getArgs()
Get the arguments of the custom expression
|
Template |
getTemplate()
Get the serialization template for this custom expression
|
as, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, nullif, nullif, when, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
public static <T> SimpleExpression<T> create(Class<? extends T> type, String template)
public static <T> SimpleExpression<T> create(Class<? extends T> type, String template, Object one)
public static <T> SimpleExpression<T> create(Class<? extends T> type, String template, Object one, Object two)
public static <T> SimpleExpression<T> create(Class<? extends T> type, String template, Object... args)
public static <T> SimpleExpression<T> create(Class<? extends T> type, Template template, Object... args)
public final <R,C> R accept(Visitor<R,C> v, C context)
Expression
accept
in interface Expression<T>
R
- return typeC
- context typev
- visitorcontext
- context of visitpublic Object getArg(int index)
TemplateExpression
getArg
in interface TemplateExpression<T>
public List<?> getArgs()
TemplateExpression
getArgs
in interface TemplateExpression<T>
public Template getTemplate()
TemplateExpression
getTemplate
in interface TemplateExpression<T>
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.