Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast.gnu.cpp
Interface IGPPASTDeclSpecifier

All Superinterfaces:
IASTDeclSpecifier, IASTNode
All Known Subinterfaces:
IGPPASTSimpleDeclSpecifier

public interface IGPPASTDeclSpecifier
extends IASTDeclSpecifier

G++ allows for restrict to be a modifier for the decl spec.


Field Summary
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier
sc_auto, sc_extern, sc_last, sc_register, sc_static, sc_typedef, sc_unspecified
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IGPPASTDeclSpecifier copy()
          Returns a mutable copy of the tree rooted at this node.
 boolean isRestrict()
          Was restrict keyword encountered?
 void setRestrict(boolean value)
          Set restrict-modifier-encountered to value.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier
getStorageClass, isConst, isInline, isVolatile, setConst, setInline, setStorageClass, setVolatile
 
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
 

Method Detail

isRestrict

boolean isRestrict()
Was restrict keyword encountered?

Returns:
boolean

setRestrict

void setRestrict(boolean value)
Set restrict-modifier-encountered to value.

Parameters:
value - boolean

copy

IGPPASTDeclSpecifier 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 IASTDeclSpecifier
Specified by:
copy in interface IASTNode
Since:
5.1

Eclipse CDT
Pre-release 3.0

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