Eclipse CDT
7.0

org.eclipse.cdt.core.dom.ast
Interface IASTDeclSpecifier

All Superinterfaces:
IASTNode
All Known Subinterfaces:
IASTCompositeTypeSpecifier, IASTElaboratedTypeSpecifier, IASTEnumerationSpecifier, IASTNamedTypeSpecifier, IASTSimpleDeclSpecifier, ICASTCompositeTypeSpecifier, ICASTDeclSpecifier, ICASTElaboratedTypeSpecifier, ICASTEnumerationSpecifier, ICASTSimpleDeclSpecifier, ICASTTypedefNameSpecifier, ICPPASTCompositeTypeSpecifier, ICPPASTDeclSpecifier, ICPPASTElaboratedTypeSpecifier, ICPPASTEnumerationSpecifier, ICPPASTNamedTypeSpecifier, ICPPASTSimpleDeclSpecifier, IGCCASTSimpleDeclSpecifier, IGPPASTDeclSpecifier, IGPPASTSimpleDeclSpecifier

public interface IASTDeclSpecifier
extends IASTNode

This is the base interface that represents a declaration specifier sequence.


Field Summary
static int sc_auto
           
static int sc_extern
           
static int sc_last
          Deprecated. All constants must be defined in this interface.
static int sc_mutable
           
static int sc_register
           
static int sc_static
           
static int sc_typedef
           
static int sc_unspecified
          No storage class specified.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IASTDeclSpecifier copy()
          Returns a mutable copy of the tree rooted at this node.
 int getStorageClass()
          Returns the storage class, which is one of the constants sc_...
 boolean isConst()
           
 boolean isInline()
           
 boolean isRestrict()
           
 boolean isVolatile()
           
 void setConst(boolean value)
          Not allowed on frozen ast.
 void setInline(boolean value)
          Not allowed on frozen ast.
 void setRestrict(boolean value)
          Not allowed on frozen ast.
 void setStorageClass(int storageClass)
          Not allowed on frozen ast.
 void setVolatile(boolean value)
          Not allowed on frozen ast.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
 

Field Detail

sc_unspecified

static final int sc_unspecified
No storage class specified.

See Also:
Constant Field Values

sc_typedef

static final int sc_typedef
See Also:
Constant Field Values

sc_extern

static final int sc_extern
See Also:
Constant Field Values

sc_static

static final int sc_static
See Also:
Constant Field Values

sc_auto

static final int sc_auto
See Also:
Constant Field Values

sc_register

static final int sc_register
See Also:
Constant Field Values

sc_mutable

static final int sc_mutable
Since:
5.2
See Also:
Constant Field Values

sc_last

@Deprecated
static final int sc_last
Deprecated. All constants must be defined in this interface.
See Also:
Constant Field Values
Method Detail

getStorageClass

int getStorageClass()
Returns the storage class, which is one of the constants sc_...


isConst

boolean isConst()

isVolatile

boolean isVolatile()

isRestrict

boolean isRestrict()
Since:
5.2

isInline

boolean isInline()

copy

IASTDeclSpecifier 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 interface IASTNode
Since:
5.1

setStorageClass

void setStorageClass(int storageClass)
Not allowed on frozen ast.


setConst

void setConst(boolean value)
Not allowed on frozen ast.


setVolatile

void setVolatile(boolean value)
Not allowed on frozen ast.


setRestrict

void setRestrict(boolean value)
Not allowed on frozen ast.

Since:
5.2

setInline

void setInline(boolean value)
Not allowed on frozen ast.


Eclipse CDT
7.0

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