Package org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPASTSimpleTypeConstructorExpression
-
- All Superinterfaces:
IASTExpression,IASTImplicitDestructorNameOwner,IASTInitializerClause,IASTNode,ICPPASTExpression,ICPPASTInitializerClause
- All Known Subinterfaces:
ICPPASTTypenameExpression
public interface ICPPASTSimpleTypeConstructorExpression extends ICPPASTExpression
Functional cast expressions: simple-type-specifier (expression-list?) simple-type-specifier braced-init-list typename-specifier (expression-list?) typename-specifier braced-init-list- 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
Fields Modifier and Type Field Description static ASTNodePropertyINITIALIZERstatic ASTNodePropertyINITIALIZER_VALUEDeprecated.Replaced byINITIALIZER.static intt_boolDeprecated.Not used.static intt_charDeprecated.Not used.static intt_doubleDeprecated.Not used.static intt_floatDeprecated.Not used.static intt_intDeprecated.Not used.static intt_longDeprecated.Not used.static intt_shortDeprecated.Not used.static intt_signedDeprecated.Not used.static intt_unsignedDeprecated.Not used.static intt_unspecifiedDeprecated.Not used.static intt_voidDeprecated.Not used.static intt_wchar_tDeprecated.Not used.static ASTNodePropertyTYPE_SPECIFIER-
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
EMPTY_EXPRESSION_ARRAY
-
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTImplicitDestructorNameOwner
IMPLICIT_DESTRUCTOR_NAME
-
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ICPPASTSimpleTypeConstructorExpressioncopy()Returns a mutable copy of the tree rooted at this node.ICPPASTSimpleTypeConstructorExpressioncopy(IASTNode.CopyStyle style)Returns a mutable copy of the tree rooted at this node.ICPPASTDeclSpecifiergetDeclSpecifier()Returns the declaration specifier that specifies the type.IASTInitializergetInitializer()Returns the argument for initialization.IASTExpressiongetInitialValue()Deprecated.Replaced bygetInitializer()intgetSimpleType()Deprecated.Replaced bygetDeclSpecifier().voidsetDeclSpecifier(ICPPASTDeclSpecifier declSpec)Not allowed on frozen ast.voidsetInitializer(IASTInitializer initializer)Not allowed on frozen ast.voidsetInitialValue(IASTExpression expression)Deprecated.Replaced bysetInitializer(IASTInitializer)voidsetSimpleType(int value)Deprecated.Replaced bysetDeclSpecifier(ICPPASTDeclSpecifier)-
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
getExpressionType, getValueCategory, isLValue
-
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTImplicitDestructorNameOwner
getImplicitDestructorNames
-
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
-
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTInitializerClause
getEvaluation
-
-
-
-
Field Detail
-
TYPE_SPECIFIER
static final ASTNodeProperty TYPE_SPECIFIER
- Since:
- 5.2
-
INITIALIZER
static final ASTNodeProperty INITIALIZER
- Since:
- 5.2
-
t_unspecified
@Deprecated static final int t_unspecified
Deprecated.Not used.- 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.Not used.- 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.Not used.- 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.Not used.- 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.Not used.- 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.Not used.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_bool
@Deprecated static final int t_bool
Deprecated.Not used.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_wchar_t
@Deprecated static final int t_wchar_t
Deprecated.Not used.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_short
@Deprecated static final int t_short
Deprecated.Not used.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_long
@Deprecated static final int t_long
Deprecated.Not used.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_signed
@Deprecated static final int t_signed
Deprecated.Not used.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
t_unsigned
@Deprecated static final int t_unsigned
Deprecated.Not used.- See Also:
- Constant Field Values
- Restriction:
- This field is not intended to be referenced by clients.
-
INITIALIZER_VALUE
@Deprecated static final ASTNodeProperty INITIALIZER_VALUE
Deprecated.Replaced byINITIALIZER.- Restriction:
- This field is not intended to be referenced by clients.
-
-
Method Detail
-
getDeclSpecifier
ICPPASTDeclSpecifier getDeclSpecifier()
Returns the declaration specifier that specifies the type.- Since:
- 5.2
-
getInitializer
IASTInitializer getInitializer()
Returns the argument for initialization. Can beICPPASTConstructorInitializerorICPPASTInitializerList- Since:
- 5.2
-
copy
ICPPASTSimpleTypeConstructorExpression copy()
Description copied from interface:IASTNodeReturns 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:
copyin interfaceIASTExpression- Specified by:
copyin interfaceIASTInitializerClause- Specified by:
copyin interfaceIASTNode- Since:
- 5.1
-
copy
ICPPASTSimpleTypeConstructorExpression copy(IASTNode.CopyStyle style)
Description copied from interface:IASTNodeReturns 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:
copyin interfaceIASTExpression- Specified by:
copyin interfaceIASTInitializerClause- Specified by:
copyin interfaceIASTNode- Parameters:
style-IASTNode.CopyStylecreate a copy with or without locations. Please seeIASTNode.CopyStylefor restrictions on copies with Locations.- Since:
- 5.3
-
setDeclSpecifier
void setDeclSpecifier(ICPPASTDeclSpecifier declSpec)
Not allowed on frozen ast.- Since:
- 5.2
-
setInitializer
void setInitializer(IASTInitializer initializer)
Not allowed on frozen ast.- Since:
- 5.2
-
getSimpleType
@Deprecated int getSimpleType()
Deprecated.Replaced bygetDeclSpecifier().- Restriction:
- This method is not intended to be referenced by clients.
-
setSimpleType
@Deprecated void setSimpleType(int value)
Deprecated.Replaced bysetDeclSpecifier(ICPPASTDeclSpecifier)- Restriction:
- This method is not intended to be referenced by clients.
-
getInitialValue
@Deprecated IASTExpression getInitialValue()
Deprecated.Replaced bygetInitializer()- Restriction:
- This method is not intended to be referenced by clients.
-
setInitialValue
@Deprecated void setInitialValue(IASTExpression expression)
Deprecated.Replaced bysetInitializer(IASTInitializer)- Restriction:
- This method is not intended to be referenced by clients.
-
-