Source code: javax/ide/model/java/source/tree/LiteralExpressionT.java
1 /*
2 * @(#)LiteralExpressionT.java
3 */
4
5 package javax.ide.model.java.source.tree;
6
7 /**
8 * An expression representing a lexer literal. <p/>
9 *
10 * Class literals and this literals, though called "literal", are not
11 * here considered to be literal expressions. As a result of this
12 * definition, the value of all LiteralExpressionTs can be determined
13 * at parse-time whereas the value of class literals and this literals
14 * can only be determined at compile-time.
15 *
16 * @author Andy Yu
17 * */
18 public interface LiteralExpressionT
19 extends ExpressionT
20 {
21 // ----------------------------------------------------------------------
22
23 /**
24 * Provided for convenience.
25 *
26 * @return The token value of the lexer literal. Valid values found
27 * in JavaTokens. If the literal is empty, TK_INT_LITERAL is
28 * returned.
29 */
30 public int getTokenValue();
31
32 /**
33 * @return The lexer literal this literal is attached to.
34 */
35 // public LexerLiteral getLiteral();
36 }