@Immutable public final class ConstantImpl<T> extends ExpressionBase<T> implements Constant<T>
ConstantImpl is the default implementation of the Constant interface| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context
|
static Constant<Boolean> |
create(boolean b) |
static Constant<Byte> |
create(byte i) |
static Constant<Character> |
create(char i) |
static <T> Constant<T> |
create(Class<T> type,
T constant) |
static Constant<Integer> |
create(int i) |
static Constant<Long> |
create(long i) |
static Constant<Short> |
create(short i) |
static <T> Constant<T> |
create(T obj) |
boolean |
equals(Object o) |
T |
getConstant()
Get the wrapped constant
|
getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypepublic static <T> Constant<T> create(T obj)
public <R,C> R accept(Visitor<R,C> v, C context)
Expressionaccept in interface Expression<T>R - return typeC - context typev - visitorcontext - context of visitpublic T getConstant()
ConstantgetConstant in interface Constant<T>Copyright © 2007–2015 Mysema Ltd. All rights reserved.