polyglot.ast
Interface FloatLit
- All Superinterfaces:
- java.lang.Cloneable, Copy, Expr, JL, Lit, Node, NodeOps, Prefix, Receiver, Term, Typed
- All Known Implementing Classes:
- FloatLit_c
public interface FloatLit
- extends Lit
A FloatLit
represents a literal in java of type
float
or double
.
Nested Class Summary |
static class |
FloatLit.Kind
Integer literal kinds: float (e.g., 0.0F) or double (e.g., 0.0). |
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
copy |
Methods inherited from interface polyglot.ast.Typed |
type |
FLOAT
static final FloatLit.Kind FLOAT
DOUBLE
static final FloatLit.Kind DOUBLE
kind
FloatLit.Kind kind()
- The kind of literal: FLOAT or DOUBLE.
kind
FloatLit kind(FloatLit.Kind kind)
- Set the kind of literal: FLOAT or DOUBLE.
value
double value()
- The literal's value.
value
FloatLit value(double value)
- Set the literal's value.