public class Literal extends Expression implements Comparable
| 限定符和类型 | 字段和说明 |
|---|---|
static Literal |
NULLLiteral |
Object |
obj |
type| 构造器和说明 |
|---|
Literal(Object value,
GrammarToken token) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Object o) |
Object |
evaluate(Context ctx) |
void |
infer(InferContext inferCtx) |
String |
toString() |
getType, setTypepublic Literal(Object value, GrammarToken token)
public Object evaluate(Context ctx)
evaluate 在类中 Expressionpublic void infer(InferContext inferCtx)
public int compareTo(Object o)
compareTo 在接口中 ComparableCopyright © 2017. All rights reserved.