Serializablepublic class Literal<K> extends Expression<K>
Expression.HashComparator, Expression.LexicographicComparator| Modifier and Type | Field | Description |
|---|---|---|
static String |
EXPR_TYPE |
HASH_COMPARATOR, LEXICOGRAPHIC_COMPARATOR| Modifier and Type | Method | Description |
|---|---|---|
Expression<K> |
apply(RuleList<K> rules,
ExprOptions<K> options) |
|
void |
collectK(Set<K> set,
int limit) |
|
boolean |
equals(Object o) |
|
List<Expression<K>> |
getChildren() |
|
String |
getExprType() |
|
static <V> Literal<V> |
getFalse() |
|
static <V> Literal<V> |
getTrue() |
|
boolean |
getValue() |
|
int |
hashCode() |
|
Expression<K> |
map(Function<Expression<K>,Expression<K>> function,
ExprFactory<K> factory) |
|
static <K> Literal<K> |
of(boolean value) |
|
Expression<K> |
replaceVars(Map<K,Expression<K>> m,
ExprFactory<K> factory) |
|
Expression<K> |
sort(Comparator<Expression> comparator) |
|
String |
toString() |
getAllK, toLexicographicStringpublic static final String EXPR_TYPE
public static <V> Literal<V> getTrue()
public static <V> Literal<V> getFalse()
public static <K> Literal<K> of(boolean value)
public boolean getValue()
public Expression<K> apply(RuleList<K> rules, ExprOptions<K> options)
apply in class Expression<K>public List<Expression<K>> getChildren()
getChildren in class Expression<K>public Expression<K> map(Function<Expression<K>,Expression<K>> function, ExprFactory<K> factory)
map in class Expression<K>public Expression<K> sort(Comparator<Expression> comparator)
sort in class Expression<K>public String getExprType()
getExprType in class Expression<K>public void collectK(Set<K> set, int limit)
collectK in class Expression<K>public Expression<K> replaceVars(Map<K,Expression<K>> m, ExprFactory<K> factory)
replaceVars in class Expression<K>Copyright © 2019. All rights reserved.