
LiteralExpr puts an Bool, Int, Float, Str, Duration, Uri, or null constant onto the stack.
Slots
- asTableSwitchCase
-
override Int asTableSwitchCase()
Return this expression as an Int literal usable in a tableswitch, or null if this Expr doesn't represent a constant Int. Expressions which work as table switch cases: int literals and enum constants
- make
-
new make(Location location, ExprId id, CType ctype, Obj val)
- makeFor
-
static LiteralExpr makeFor(Location loc, CNamespace ns, Obj val)
- serialize
-
override Str serialize()
Return this expression as serialization text or throw exception if not serializable.
- toStr
-
override Str toStr()
Return a string representation of this object.
- val
-
Obj val