Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast
Interface IASTLiteralExpression

All Superinterfaces:
IASTExpression, IASTNode
All Known Subinterfaces:
ICPPASTLiteralExpression

public interface IASTLiteralExpression
extends IASTExpression

This expression represents a literal in the program.


Field Summary
static int lk_char_constant
          A char literal e.g.
static int lk_float_constant
          A floating point literal e.g. 6.0
static int lk_integer_constant
          An integer literal e.g. 5
static int lk_last
          A constant defined for subclasses to extend from.
static int lk_string_literal
          A string literal e.g.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
EMPTY_EXPRESSION_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 int getKind()
          Get the literal expression kind.
 void setKind(int value)
          Set the literal expression kind.
 void setValue(String value)
          Set the value of the literal expression.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

lk_integer_constant

static final int lk_integer_constant
An integer literal e.g. 5

See Also:
Constant Field Values

lk_float_constant

static final int lk_float_constant
A floating point literal e.g. 6.0

See Also:
Constant Field Values

lk_char_constant

static final int lk_char_constant
A char literal e.g. 'abc'

See Also:
Constant Field Values

lk_string_literal

static final int lk_string_literal
A string literal e.g. "abcdefg"

See Also:
Constant Field Values

lk_last

static final int lk_last
A constant defined for subclasses to extend from.

See Also:
Constant Field Values
Method Detail

getKind

int getKind()
Get the literal expression kind.

Returns:
int

setKind

void setKind(int value)
Set the literal expression kind.

Parameters:
value - int

setValue

void setValue(String value)
Set the value of the literal expression.

Parameters:
value -

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.