Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
java.lang.Cloneable, IType
All Known Subinterfaces:
ICBasicType, ICPPBasicType, IGPPBasicType

public interface IBasicType
extends IType

Interface for basic types.


Field Summary
static int t_char
           
static int t_double
           
static int t_float
           
static int t_int
           
static int t_unspecified
           
static int t_void
           
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IType
EMPTY_TYPE_ARRAY, TYPE_MATCHER
 
Method Summary
 int getType()
          This returns the built-in type for the declaration.
 IASTExpression getValue()
          Deprecated. 
 boolean isLong()
           
 boolean isShort()
           
 boolean isSigned()
           
 boolean isUnsigned()
           
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IType
clone, isSameType
 

Field Detail

t_unspecified

static final int t_unspecified
See Also:
Constant Field Values

t_void

static final int t_void
See Also:
Constant Field Values

t_char

static final int t_char
See Also:
Constant Field Values

t_int

static final int t_int
See Also:
Constant Field Values

t_float

static final int t_float
See Also:
Constant Field Values

t_double

static final int t_double
See Also:
Constant Field Values
Method Detail

getType

int getType()
            throws DOMException
This returns the built-in type for the declaration. The type is then refined by qualifiers for signed/unsigned and short/long. The type could also be unspecified which usually means int.

Throws:
DOMException

getValue

@Deprecated
IASTExpression getValue()
                        throws DOMException
Deprecated. 

Throws:
DOMException

isSigned

boolean isSigned()
                 throws DOMException
Throws:
DOMException

isUnsigned

boolean isUnsigned()
                   throws DOMException
Throws:
DOMException

isShort

boolean isShort()
                throws DOMException
Throws:
DOMException

isLong

boolean isLong()
               throws DOMException
Throws:
DOMException

Eclipse CDT
Pre-release 3.0

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