Eclipse CDT
7.0

org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPASTSimpleTypeConstructorExpression

All Superinterfaces:
IASTExpression, 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


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
static ASTNodeProperty INITIALIZER
           
static ASTNodeProperty INITIALIZER_VALUE
          Deprecated. Replaced by INITIALIZER.
static int t_bool
          Deprecated. 
static int t_char
          Deprecated. 
static int t_double
          Deprecated. 
static int t_float
          Deprecated. 
static int t_int
          Deprecated. 
static int t_last
          Deprecated. 
static int t_long
          Deprecated. 
static int t_short
          Deprecated. 
static int t_signed
          Deprecated. 
static int t_unsigned
          Deprecated. 
static int t_unspecified
          Deprecated. 
static int t_void
          Deprecated. 
static int t_wchar_t
          Deprecated. 
static ASTNodeProperty TYPE_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.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 ICPPASTSimpleTypeConstructorExpression copy()
          Returns a mutable copy of the tree rooted at this node.
 ICPPASTSimpleTypeConstructorExpression copy(IASTNode.CopyStyle style)
          Returns a mutable copy of the tree rooted at this node.
 ICPPASTDeclSpecifier getDeclSpecifier()
          Returns the declaration specifier that specifies the type.
 IASTInitializer getInitializer()
          Returns the argument for initialization.
 IASTExpression getInitialValue()
          Deprecated. Replaced by getInitializer()
 int getSimpleType()
          Deprecated. Replaced by getDeclSpecifier().
 void setDeclSpecifier(ICPPASTDeclSpecifier declSpec)
          Not allowed on frozen ast.
 void setInitializer(IASTInitializer initializer)
          Not allowed on frozen ast.
 void setInitialValue(IASTExpression expression)
          Deprecated. Replaced by setInitializer(IASTInitializer)
 void setSimpleType(int value)
          Deprecated. Replaced by setDeclSpecifier(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.cpp.ICPPASTInitializerClause
getEvaluation
 
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 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. 
See Also:
Constant Field Values

t_void

@Deprecated
static final int t_void
Deprecated. 
See Also:
Constant Field Values

t_char

@Deprecated
static final int t_char
Deprecated. 
See Also:
Constant Field Values

t_int

@Deprecated
static final int t_int
Deprecated. 
See Also:
Constant Field Values

t_float

@Deprecated
static final int t_float
Deprecated. 
See Also:
Constant Field Values

t_double

@Deprecated
static final int t_double
Deprecated. 
See Also:
Constant Field Values

t_bool

@Deprecated
static final int t_bool
Deprecated. 
See Also:
Constant Field Values

t_wchar_t

@Deprecated
static final int t_wchar_t
Deprecated. 
See Also:
Constant Field Values

t_short

@Deprecated
static final int t_short
Deprecated. 
See Also:
Constant Field Values

t_long

@Deprecated
static final int t_long
Deprecated. 
See Also:
Constant Field Values

t_signed

@Deprecated
static final int t_signed
Deprecated. 
See Also:
Constant Field Values

t_unsigned

@Deprecated
static final int t_unsigned
Deprecated. 
See Also:
Constant Field Values

t_last

@Deprecated
static final int t_last
Deprecated. 
See Also:
Constant Field Values

INITIALIZER_VALUE

@Deprecated
static final ASTNodeProperty INITIALIZER_VALUE
Deprecated. Replaced by INITIALIZER.
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 be ICPPASTConstructorInitializer or ICPPASTInitializerList

Since:
5.2

copy

ICPPASTSimpleTypeConstructorExpression 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

Specified by:
copy in interface IASTExpression
Specified by:
copy in interface IASTInitializerClause
Specified by:
copy in interface IASTNode
Since:
5.1

copy

ICPPASTSimpleTypeConstructorExpression copy(IASTNode.CopyStyle style)
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 interface IASTExpression
Specified by:
copy in interface IASTInitializerClause
Specified by:
copy in interface IASTNode
Parameters:
style - IASTNode.CopyStyle create a copy with or without locations. Please see IASTNode.CopyStyle for 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 by getDeclSpecifier().


setSimpleType

@Deprecated
void setSimpleType(int value)
Deprecated. Replaced by setDeclSpecifier(ICPPASTDeclSpecifier)


getInitialValue

@Deprecated
IASTExpression getInitialValue()
Deprecated. Replaced by getInitializer()


setInitialValue

@Deprecated
void setInitialValue(IASTExpression expression)
Deprecated. Replaced by setInitializer(IASTInitializer)


Eclipse CDT
7.0

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