|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Provides the common interface for representing literals.
| Field Summary | |
static int |
BOOLEAN
Constant representing a boolean literal. |
static int |
CHAR
Constant representing a character literal. |
static int |
DOUBLE
Constant representing a double literal. |
static int |
FLOAT
Constant representing a float literal. |
static int |
INT
Constant representing an integer literal. |
static int |
LONG
Constant representing a long literal. |
static int |
NULL
Constant representing the null literal. |
static int |
STRING
Constant representing a string literal. |
| Method Summary | |
int |
getLiteralKind()
Returns this literal's kind encoded as an integer. |
java.lang.String |
getText()
Returns the literal value of this literal. |
boolean |
hasGoodValue()
Returns true if this literal has correct format and
allowed value. |
void |
setText(java.lang.String value)
Set literal value . |
| Methods inherited from interface com.togethersoft.sca.ast.AstExpression |
getOperands, getRuntimeType, getType, isConstant |
| Methods inherited from interface com.togethersoft.sca.ast.AstObject |
addComment, getChildren, getComments, getCompilationUnit, getDeclaringMethod, getDeclaringType, getObjectKind, getPackage, getParent, getPosition, isDeleted, remove, replaceWith, replaceWith, setPosition, setPositionAfter, visitExpressions, visitStatements |
| Field Detail |
public static final int BOOLEAN
public static final int CHAR
public static final int DOUBLE
public static final int FLOAT
public static final int INT
public static final int LONG
public static final int NULL
null literal.public static final int STRING
| Method Detail |
public int getLiteralKind()
public java.lang.String getText()
String value of this literal.public boolean hasGoodValue()
true if this literal has correct format and
allowed value.true if this literal is valid.public void setText(java.lang.String value)
value - String value of this literal.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||