T
- expression type@Immutable public class OperationImpl<T> extends ExpressionBase<T> implements Operation<T>
Modifier | Constructor and Description |
---|---|
protected |
OperationImpl(Class<? extends T> type,
Operator<? super T> operator,
Expression<?>... args) |
|
OperationImpl(Class<? extends T> type,
Operator<? super T> operator,
com.google.common.collect.ImmutableList<Expression<?>> 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 <RT> Operation<RT> |
create(Class<? extends RT> type,
Operator<? super RT> operator,
Expression<?> one) |
static <RT> Operation<RT> |
create(Class<? extends RT> type,
Operator<? super RT> operator,
Expression<?> one,
Expression<?> two) |
boolean |
equals(Object o) |
Expression<?> |
getArg(int i)
Get the argument with the given index
|
List<Expression<?>> |
getArgs()
Get the arguments of this operation
|
Operator<? super T> |
getOperator()
Get the operator symbol for this operation
|
getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
protected OperationImpl(Class<? extends T> type, Operator<? super T> operator, Expression<?>... args)
public OperationImpl(Class<? extends T> type, Operator<? super T> operator, com.google.common.collect.ImmutableList<Expression<?>> args)
public static <RT> Operation<RT> create(Class<? extends RT> type, Operator<? super RT> operator, Expression<?> one)
public static <RT> Operation<RT> create(Class<? extends RT> type, Operator<? super RT> operator, Expression<?> one, Expression<?> two)
public final Expression<?> getArg(int i)
Operation
public final List<Expression<?>> getArgs()
Operation
public final Operator<? super T> getOperator()
Operation
getOperator
in interface Operation<T>
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 visitCopyright © 2007-2013 Mysema Ltd. All Rights Reserved.