public static class Expression.Const extends Expression
Expression.Application, Expression.Binary, Expression.Block, Expression.Const, Expression.Ident, Expression.IfExp, Expression.LambdaExp, Expression.Tuple, Expression.Unary
Modifier and Type | Field and Description |
---|---|
Value |
v
The Value denoted by 'this' Const (literal).
|
Modifier and Type | Method and Description |
---|---|
void |
appendSB(java.lang.StringBuffer sb)
The use of a StringBuffer, sb, gives linear complexity when
printing large Values; also see
Expression.toString() . |
Value |
defer(Environment e)
It is safe to return Value
v , which is known at
"compile"-time; also see Expression.defer(la.la.Environment) . |
Value |
eval(Environment e)
Note, a Const was evaluated, to
v , at "compile"-time. |
int |
n()
n(), the numerical code (tag) of a subclass of Expression,
for example, for switch-ing.
|
error, toString
public final Value v
public Const(Value v)
public int n()
Expression
n
in class Expression
public Value defer(Environment e)
v
, which is known at
"compile"-time; also see Expression.defer(la.la.Environment)
.defer
in class Expression
public Value eval(Environment e)
v
, at "compile"-time.eval
in class Expression
public void appendSB(java.lang.StringBuffer sb)
Expression
Expression.toString()
.appendSB
in class Expression