public interface IASTSimpleDeclSpecifier extends IASTDeclSpecifier
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static ASTNodeProperty |
DECLTYPE_EXPRESSION |
static int |
t_auto
auto c = expression; |
static int |
t_bool
Represents a boolean type (bool in c++, _Bool in c)
|
static int |
t_char
char c; |
static int |
t_char16_t
char16_t c; |
static int |
t_char32_t
char32_t c; |
static int |
t_decimal128
_Decimal128 i; |
static int |
t_decimal32
_Decimal32 i; |
static int |
t_decimal64
_Decimal64 i; |
static int |
t_decltype
decltype('c') c; |
static int |
t_decltype_auto
decltype(auto) c = expression; |
static int |
t_double
double d; |
static int |
t_float
float f; |
static int |
t_float128
__float128 i; |
static int |
t_int
int i; |
static int |
t_int128
__int128 i; |
static int |
t_typeof
typeof 'c' c; |
static int |
t_unspecified
Used for omitted declaration specifiers.
|
static int |
t_void
void x(); |
static int |
t_wchar_t
wchar_t c; |
ALIGNMENT_SPECIFIER, sc_auto, sc_extern, sc_mutable, sc_register, sc_static, sc_typedef, sc_unspecified
ATTRIBUTE, ATTRIBUTE_SPECIFIER
EMPTY_NODE_ARRAY
Modifier and Type | Method and Description |
---|---|
IASTSimpleDeclSpecifier |
copy()
Returns a mutable copy of the tree rooted at this node.
|
IASTExpression |
getDeclTypeExpression()
Returns the expression for simple declaration specifiers of type
t_decltype or t_typeof . |
int |
getType()
Returns the built-in type for the declaration.
|
boolean |
isComplex()
_Complex t ; |
boolean |
isImaginary()
_Imaginary t ; |
boolean |
isLong()
long int l; |
boolean |
isLongLong()
long long int l; |
boolean |
isShort()
short int s; |
boolean |
isSigned()
signed char c; |
boolean |
isUnsigned()
unsigned int u; |
void |
setComplex(boolean value)
Not allowed on frozen ast.
|
void |
setDeclTypeExpression(IASTExpression expression)
Not allowed on frozen ast.
|
void |
setImaginary(boolean value)
Not allowed on frozen ast.
|
void |
setLong(boolean value)
Not allowed on frozen ast.
|
void |
setLongLong(boolean value)
Not allowed on frozen ast.
|
void |
setShort(boolean value)
Not allowed on frozen ast.
|
void |
setSigned(boolean value)
Not allowed on frozen ast.
|
void |
setType(IBasicType.Kind kind)
Not allowed on frozen ast.
|
void |
setType(int type)
Not allowed on frozen ast.
|
void |
setUnsigned(boolean value)
Not allowed on frozen ast.
|
copy, getAlignmentSpecifiers, getStorageClass, isConst, isInline, isRestrict, isVolatile, setAlignmentSpecifiers, setConst, setInline, setRestrict, setStorageClass, setVolatile
addAttribute, addAttributeSpecifier, getAttributes, getAttributeSpecifiers
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
static final ASTNodeProperty DECLTYPE_EXPRESSION
static final int t_unspecified
static final int t_void
void x();
static final int t_char
char c;
static final int t_int
int i;
static final int t_float
float f;
static final int t_double
double d;
static final int t_bool
static final int t_wchar_t
wchar_t c;
static final int t_typeof
typeof 'c' c;
static final int t_decltype
decltype('c') c;
static final int t_auto
auto c = expression;
static final int t_char16_t
char16_t c;
static final int t_char32_t
char32_t c;
static final int t_int128
__int128 i;
static final int t_float128
__float128 i;
static final int t_decimal32
_Decimal32 i;
static final int t_decimal64
_Decimal64 i;
static final int t_decimal128
_Decimal128 i;
static final int t_decltype_auto
decltype(auto) c = expression;
IASTSimpleDeclSpecifier copy()
IASTNode
copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.
Calling this method is equivalent to copy(CopyStyle.withoutLocations)
.
copy
in interface IASTDeclSpecifier
copy
in interface IASTNode
int getType()
boolean isSigned()
signed char c;
boolean isUnsigned()
unsigned int u;
boolean isShort()
short int s;
boolean isLong()
long int l;
boolean isLongLong()
long long int l;
boolean isComplex()
_Complex t
;boolean isImaginary()
_Imaginary t
;IASTExpression getDeclTypeExpression()
t_decltype
or t_typeof
.
Other simple declaration specifiers will return null
.void setType(int type)
getType()
void setType(IBasicType.Kind kind)
IBasicType.Kind
.void setSigned(boolean value)
isSigned()
void setUnsigned(boolean value)
isUnsigned()
void setShort(boolean value)
isShort()
void setLong(boolean value)
isLong()
void setLongLong(boolean value)
isLongLong()
void setComplex(boolean value)
isComplex()
void setImaginary(boolean value)
isImaginary()
void setDeclTypeExpression(IASTExpression expression)
getDeclTypeExpression()
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.