public static class Expression.Ident 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 |
---|---|
java.lang.String |
id |
int |
levels
|
int |
offset
|
Constructor and Description |
---|
Ident(java.lang.String id) |
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 |
eval(Environment r)
lookup 'this' Ident's Value in 'r'. |
int |
n()
n(), the numerical code (tag) of a subclass of Expression,
for example, for switch-ing.
|
defer, error, toString
public int n()
Expression
n
in class Expression
public Value eval(Environment r)
lookup
'this' Ident's Value in 'r'.eval
in class Expression
public void appendSB(java.lang.StringBuffer sb)
Expression
Expression.toString()
.appendSB
in class Expression