KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > ast > FloatLit


1 package polyglot.ast;
2
3 import polyglot.util.Enum;
4
5 /**
6  * A <code>FloatLit</code> represents a literal in java of type
7  * <code>float</code> or <code>double</code>.
8  */

9 public interface FloatLit extends Lit
10 {
11     /** Integer literal kinds: float (e.g., 0.0F) or double (e.g., 0.0). */
12     public static class Kind extends Enum JavaDoc {
13         public Kind(String JavaDoc name) { super(name); }
14     }
15
16     public static final Kind FLOAT = new Kind("float");
17     public static final Kind DOUBLE = new Kind("double");
18
19     /** The kind of literal: FLOAT or DOUBLE. */
20     Kind kind();
21
22     /** Set the kind of literal: FLOAT or DOUBLE. */
23     FloatLit kind(Kind kind);
24
25     /** The literal's value. */
26     double value();
27
28     /** Set the literal's value. */
29     FloatLit value(double value);
30 }
31
Popular Tags