Eclipse CDT
Pre-release 3.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, 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
          sc_autoauto
static int sc_extern
          sc_externextern
static int sc_last
          sc_last for sub-interfaces to continue on
static int sc_register
          sc_registerregister
static int sc_static
          sc_staticstatic
static int sc_typedef
          sc_typedef typedef
static int sc_unspecified
          sc_unspecified undefined storage class
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 String getRawSignature()
          Get the string that represents the decl specifier seq. as represented in the file pre-processing.
 int getStorageClass()
          Get the storage class.
 boolean isConst()
          Is const modifier used?
 boolean isInline()
          Is inline modifier used?
 boolean isVolatile()
          Is volatile modifier used?
 void setConst(boolean value)
          Set const modifier used.
 void setInline(boolean value)
          Set inline modifier used.
 void setStorageClass(int storageClass)
          Set the storage class.
 void setVolatile(boolean value)
          Set volatile modifier used.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

sc_unspecified

static final int sc_unspecified
sc_unspecified undefined storage class

See Also:
Constant Field Values

sc_typedef

static final int sc_typedef
sc_typedef typedef

See Also:
Constant Field Values

sc_extern

static final int sc_extern
sc_externextern

See Also:
Constant Field Values

sc_static

static final int sc_static
sc_staticstatic

See Also:
Constant Field Values

sc_auto

static final int sc_auto
sc_autoauto

See Also:
Constant Field Values

sc_register

static final int sc_register
sc_registerregister

See Also:
Constant Field Values

sc_last

static final int sc_last
sc_last for sub-interfaces to continue on

See Also:
Constant Field Values
Method Detail

setStorageClass

void setStorageClass(int storageClass)
Set the storage class.

Parameters:
storageClass - int

getStorageClass

int getStorageClass()
Get the storage class.

Returns:
int

isConst

boolean isConst()
Is const modifier used?

Returns:
boolean

setConst

void setConst(boolean value)
Set const modifier used.

Parameters:
value - boolean

isVolatile

boolean isVolatile()
Is volatile modifier used?

Returns:
boolean

setVolatile

void setVolatile(boolean value)
Set volatile modifier used.

Parameters:
value - boolean

isInline

boolean isInline()
Is inline modifier used?

Returns:
boolean

setInline

void setInline(boolean value)
Set inline modifier used.

Parameters:
value - boolean

getRawSignature

String getRawSignature()
Get the string that represents the decl specifier seq. as represented in the file pre-processing.

Specified by:
getRawSignature in interface IASTNode
Returns:
String

Eclipse CDT
Pre-release 3.0

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