Package org.eclipse.cdt.core.dom.ast
Interface IASTTypeIdExpression
- All Superinterfaces:
IASTExpression
,IASTInitializerClause
,IASTNode
- All Known Subinterfaces:
ICPPASTTypeIdExpression
,IGNUASTTypeIdExpression
- 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/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
IASTExpression.ValueCategory
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
IASTNode.CopyStyle
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
For gnu-parsers, only.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of Clang.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
Built-in type trait of g++.static final int
op_sizeof
sizeof (typeId) expressionstatic final int
op_sizeofParameterPack
is used for sizeof...static final int
For c++, only.static final int
For gnu-parsers, only.static final ASTNodeProperty
TYPEID
represents the relationship between anIASTTypeIdExpression
and it's nestedIASTTypeId
.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
Modifier and TypeMethodDescriptioncopy()
Returns a mutable copy of the tree rooted at this node.copy
(IASTNode.CopyStyle style) Returns a mutable copy of the tree rooted at this node.int
Returns the operator for the expression.Get the type Id.void
setOperator
(int value) Sets the operator for the expression.void
setTypeId
(IASTTypeId typeId) Set the type Id.Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
getExpressionType, getValueCategory, isLValue
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
-
Field Details
-
op_sizeof
static final int op_sizeofop_sizeof
sizeof (typeId) expression- See Also:
-
op_typeid
static final int op_typeidFor c++, only.- See Also:
-
op_alignof
static final int op_alignofFor gnu-parsers, only.op_alignOf
is used for __alignOf( typeId ) type expressions.- See Also:
-
op_typeof
static final int op_typeofFor gnu-parsers, only.op_typeof
is used for typeof( typeId ) type expressions.- See Also:
-
op_has_nothrow_assign
static final int op_has_nothrow_assignBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_has_nothrow_copy
static final int op_has_nothrow_copyBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_has_nothrow_constructor
static final int op_has_nothrow_constructorBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_has_trivial_assign
static final int op_has_trivial_assignBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_has_trivial_copy
static final int op_has_trivial_copyBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_has_trivial_constructor
static final int op_has_trivial_constructorBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_has_trivial_destructor
static final int op_has_trivial_destructorBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_has_virtual_destructor
static final int op_has_virtual_destructorBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_is_abstract
static final int op_is_abstractBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_is_class
static final int op_is_classBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_is_empty
static final int op_is_emptyBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_is_enum
static final int op_is_enumBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_is_pod
static final int op_is_podBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_is_polymorphic
static final int op_is_polymorphicBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_is_union
static final int op_is_unionBuilt-in type trait of g++.- Since:
- 5.3
- See Also:
-
op_is_literal_type
static final int op_is_literal_typeBuilt-in type trait of g++.- Since:
- 5.5
- See Also:
-
op_is_standard_layout
static final int op_is_standard_layoutBuilt-in type trait of g++.- Since:
- 5.5
- See Also:
-
op_is_trivial
static final int op_is_trivialBuilt-in type trait of g++.- Since:
- 5.5
- See Also:
-
op_sizeofParameterPack
static final int op_sizeofParameterPackop_sizeofParameterPack
is used for sizeof... ( typeid ) expressions.- Since:
- 5.5
- See Also:
-
op_is_final
static final int op_is_finalBuilt-in type trait of g++.- Since:
- 5.6
- See Also:
-
op_is_trivially_copyable
static final int op_is_trivially_copyableBuilt-in type trait of g++.- Since:
- 6.0
- See Also:
-
op_has_unique_object_representations
static final int op_has_unique_object_representationsBuilt-in type trait of g++.- Since:
- 8.1
- See Also:
-
op_is_aggregate
static final int op_is_aggregateBuilt-in type trait of g++.- Since:
- 8.1
- See Also:
-
op_is_function
static final int op_is_functionBuilt-in type trait of Clang.- Since:
- 8.4
- See Also:
-
TYPE_ID
TYPEID
represents the relationship between anIASTTypeIdExpression
and it's nestedIASTTypeId
.
-
-
Method Details
-
getOperator
int getOperator()Returns the operator for the expression.- Returns:
- int
-
setOperator
void setOperator(int value) Sets the operator for the expression.- Parameters:
value
- int
-
setTypeId
Set the type Id.- Parameters:
typeId
-
-
getTypeId
IASTTypeId getTypeId()Get the type Id. -
copy
IASTTypeIdExpression copy()Description copied from interface:IASTNode
Returns a mutable copy of the tree rooted at this node. The following postconditions hold:copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == false
Preprocessor 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)
.- Specified by:
copy
in interfaceIASTExpression
- Specified by:
copy
in interfaceIASTInitializerClause
- Specified by:
copy
in interfaceIASTNode
- Since:
- 5.1
-
copy
Description copied from interface:IASTNode
Returns a mutable copy of the tree rooted at this node. The following postconditions hold:copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == false
Preprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.- Specified by:
copy
in interfaceIASTExpression
- Specified by:
copy
in interfaceIASTInitializerClause
- Specified by:
copy
in interfaceIASTNode
- Parameters:
style
-IASTNode.CopyStyle
create a copy with or without locations. Please seeIASTNode.CopyStyle
for restrictions on copies with Locations.- Since:
- 5.3
-