public interface Expr
Modifier and Type | Interface and Description |
---|---|
static interface |
Expr.ObjectBinding |
static interface |
Expr.Visitor |
Modifier and Type | Method and Description |
---|---|
ExprEval |
eval(Expr.ObjectBinding bindings) |
default Object |
getLiteralValue()
Returns the value of expr if expr is a literal, or throws an exception otherwise.
|
default boolean |
isLiteral() |
void |
visit(Expr.Visitor visitor) |
default boolean isLiteral()
@Nullable default Object getLiteralValue()
IllegalStateException
- if expr is not a literal@Nonnull ExprEval eval(Expr.ObjectBinding bindings)
void visit(Expr.Visitor visitor)
Copyright © 2011–2018. All rights reserved.