Package 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.- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIBasicType.Kind
-
Field Summary
Fields Modifier and Type Field Description static intIS_COMPLEXstatic intIS_IMAGINARYstatic intIS_LONGstatic intIS_LONG_LONGstatic intIS_SHORTstatic intIS_SIGNEDstatic intIS_UNSIGNEDstatic intt_charDeprecated.Use the type-safe version getKind(), instead.static intt_doubleDeprecated.Use the type-safe version getKind(), instead.static intt_floatDeprecated.Use the type-safe version getKind(), instead.static intt_intDeprecated.Use the type-safe version getKind(), instead.static intt_unspecifiedDeprecated.Use the type-safe version getKind(), instead.static intt_voidDeprecated.Use the type-safe version getKind(), instead.-
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IType
EMPTY_TYPE_ARRAY, TYPE_MATCHER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IBasicType.KindgetKind()This returns the kind of basic type you are looking at.intgetModifiers()This returns the combination of modifier bits for this type.intgetType()Deprecated.Use the type-safe version getKind(), instead.IASTExpressiongetValue()Deprecated.Types don't have values.booleanisComplex()Is complex number? e.g.booleanisImaginary()Is imaginary number? e.g.booleanisLong()booleanisLongLong()booleanisShort()booleanisSigned()booleanisUnsigned()-
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IType
clone, isSameType
-
-
-
-
Field Detail
-
IS_LONG
static final int IS_LONG
- Since:
- 5.2
- See Also:
- Constant Field Values
-
IS_SHORT
static final int IS_SHORT
- Since:
- 5.2
- See Also:
- Constant Field Values
-
IS_SIGNED
static final int IS_SIGNED
- Since:
- 5.2
- See Also:
- Constant Field Values
-
IS_UNSIGNED
static final int IS_UNSIGNED
- Since:
- 5.2
- See Also:
- Constant Field Values
-
IS_COMPLEX
static final int IS_COMPLEX
- Since:
- 5.2
- See Also:
- Constant Field Values
-
IS_IMAGINARY
static final int IS_IMAGINARY
- Since:
- 5.2
- See Also:
- Constant Field Values
-
IS_LONG_LONG
static final int IS_LONG_LONG
- Since:
- 5.2
- See Also:
- Constant Field Values
-
t_unspecified
@Deprecated static final int t_unspecified
Deprecated.Use the type-safe version getKind(), instead.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_void
@Deprecated static final int t_void
Deprecated.Use the type-safe version getKind(), instead.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_char
@Deprecated static final int t_char
Deprecated.Use the type-safe version getKind(), instead.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_int
@Deprecated static final int t_int
Deprecated.Use the type-safe version getKind(), instead.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_float
@Deprecated static final int t_float
Deprecated.Use the type-safe version getKind(), instead.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_double
@Deprecated static final int t_double
Deprecated.Use the type-safe version getKind(), instead.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
-
Method Detail
-
getKind
IBasicType.Kind getKind()
This returns the kind of basic type you are looking at. The type is then refined by qualifiers for signed/unsigned and short/long/long long.- Since:
- 5.2
-
getModifiers
int getModifiers()
This returns the combination of modifier bits for this type.- Since:
- 5.2
-
isSigned
boolean isSigned()
-
isUnsigned
boolean isUnsigned()
-
isShort
boolean isShort()
-
isLong
boolean isLong()
-
isLongLong
boolean isLongLong()
- Since:
- 5.2
-
isComplex
boolean isComplex()
Is complex number? e.g. _Complex t;- Returns:
- true if it is a complex number, false otherwise
- Since:
- 5.2
-
isImaginary
boolean isImaginary()
Is imaginary number? e.g. _Imaginr- Returns:
- true if it is an imaginary number, false otherwise
- Since:
- 5.2
-
getType
@Deprecated int getType() throws DOMExceptionDeprecated.Use the type-safe version getKind(), instead.- Throws:
DOMException- Restriction:
- This method is not intended to be referenced by clients.
-
getValue
@Deprecated IASTExpression getValue() throws DOMException
Deprecated.Types don't have values.- Throws:
DOMException- Restriction:
- This method is not intended to be referenced by clients.
-
-