static class Compiler.NumberExpr extends Compiler.LiteralExpr implements Compiler.MaybePrimitiveExpr
Modifier and Type | Field and Description |
---|---|
int |
id |
(package private) java.lang.Number |
n |
Constructor and Description |
---|
Compiler.NumberExpr(java.lang.Number n) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEmitPrimitive() |
void |
emit(Compiler.C context,
Compiler.ObjExpr objx,
GeneratorAdapter gen) |
void |
emitUnboxed(Compiler.C context,
Compiler.ObjExpr objx,
GeneratorAdapter gen) |
java.lang.Class |
getJavaClass() |
boolean |
hasJavaClass() |
static Compiler.Expr |
parse(java.lang.Number form) |
(package private) java.lang.Object |
val() |
eval
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
eval
java.lang.Object val()
val
in class Compiler.LiteralExpr
public void emit(Compiler.C context, Compiler.ObjExpr objx, GeneratorAdapter gen)
emit
in interface Compiler.Expr
public boolean hasJavaClass()
hasJavaClass
in interface Compiler.Expr
public java.lang.Class getJavaClass()
getJavaClass
in interface Compiler.Expr
public boolean canEmitPrimitive()
canEmitPrimitive
in interface Compiler.MaybePrimitiveExpr
public void emitUnboxed(Compiler.C context, Compiler.ObjExpr objx, GeneratorAdapter gen)
emitUnboxed
in interface Compiler.MaybePrimitiveExpr
public static Compiler.Expr parse(java.lang.Number form)