public final class Expression extends Object
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableMap<String,Object> |
args |
com.google.common.collect.ImmutableList<Expression> |
children |
String |
label |
static Expression |
NilExpression |
String |
operation |
static String |
ValueKey |
| Constructor and Description |
|---|
Expression() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
argFor(String key) |
List<Object> |
arrayArg() |
boolean |
boolArg(String key) |
boolean |
equals(Object o) |
int |
hashCode() |
int |
intArg(String key,
int defValue) |
String |
stringArg() |
String |
stringArg(String key) |
String |
toString() |
<T> T |
valueArg() |
static <E extends Comparable<E>> |
withArray(ExpressionType expressionType,
String label,
List<E> valueArg) |
static Expression |
withLabel(ExpressionType expressionType,
String label) |
static Expression |
withMap(String operation,
String label,
Map<String,?> args) |
static Expression |
withOnlyChildren(ExpressionType expressionType,
String label,
Iterable<Expression> list) |
static Expression |
withValue(ExpressionType expressionType,
String label,
Object valueArg) |
public static final Expression NilExpression
public static final String ValueKey
public final String operation
public final String label
public final com.google.common.collect.ImmutableList<Expression> children
public static Expression withMap(String operation, String label, Map<String,?> args)
public static Expression withValue(ExpressionType expressionType, String label, Object valueArg)
public static <E extends Comparable<E>> Expression withArray(ExpressionType expressionType, String label, List<E> valueArg)
public static Expression withOnlyChildren(ExpressionType expressionType, String label, Iterable<Expression> list)
public static Expression withLabel(ExpressionType expressionType, String label)
public <T> T valueArg()
public String stringArg()
public boolean boolArg(String key)
public int intArg(String key, int defValue)
public <T> T argFor(String key)
Copyright © 2012–2015 Polyglotted IO. All rights reserved.