Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
IASTDeclSpecifier, IASTNode, IASTSimpleDeclSpecifier, ICPPASTDeclSpecifier, ICPPASTSimpleDeclSpecifier, IGPPASTDeclSpecifier

public interface IGPPASTSimpleDeclSpecifier
extends IGPPASTDeclSpecifier, ICPPASTSimpleDeclSpecifier

G++ adds its own modifiers and types to the Simple Decl Specifier.


Field Summary
static int t_last
          t_last is for subinterfaces to extend these types.
static int t_typeof
          t_typeof represents a typeof() expression type.
static ASTNodeProperty TYPEOF_EXPRESSION
          TYPEOF_EXPRESSION represents the relationship between the decl spec & the expression for typeof().
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier
sc_auto, sc_extern, sc_register, sc_static, sc_typedef, sc_unspecified
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTSimpleDeclSpecifier
t_bool, t_wchar_t
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTSimpleDeclSpecifier
t_char, t_double, t_float, t_int, t_unspecified, t_void
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier
sc_auto, sc_extern, sc_register, sc_static, sc_typedef, sc_unspecified
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTDeclSpecifier
sc_last, sc_mutable
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier
sc_auto, sc_extern, sc_register, sc_static, sc_typedef, sc_unspecified
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IASTExpression getTypeofExpression()
          Get the typeof expression.
 boolean isComplex()
          Is complex number?
 boolean isImaginary()
          Is imaginary number?
 boolean isLongLong()
          Did we encounter "long long" as a modifier?
 void setComplex(boolean value)
          Set the number to be complex.
 void setImaginary(boolean value)
          Set the number to be imaginary.
 void setLongLong(boolean value)
          Encountered "long long" - set true or false.
 void setTypeofExpression(IASTExpression typeofExpression)
          Set the typeof() expression.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.gnu.cpp.IGPPASTDeclSpecifier
isRestrict, setRestrict
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier
getRawSignature, getStorageClass, isConst, isInline, isVolatile, setConst, setInline, setStorageClass, setVolatile
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getTranslationUnit, setParent, setPropertyInParent
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTSimpleDeclSpecifier
getType, isLong, isShort, isSigned, isUnsigned, setLong, setShort, setSigned, setType, setUnsigned
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier
getRawSignature, getStorageClass, isConst, isInline, isVolatile, setConst, setInline, setStorageClass, setVolatile
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getTranslationUnit, setParent, setPropertyInParent
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTDeclSpecifier
isExplicit, isFriend, isVirtual, setExplicit, setFriend, setVirtual
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier
getRawSignature, getStorageClass, isConst, isInline, isVolatile, setConst, setInline, setStorageClass, setVolatile
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

t_typeof

static final int t_typeof
t_typeof represents a typeof() expression type.

See Also:
Constant Field Values

t_last

static final int t_last
t_last is for subinterfaces to extend these types.

See Also:
Constant Field Values

TYPEOF_EXPRESSION

static final ASTNodeProperty TYPEOF_EXPRESSION
TYPEOF_EXPRESSION represents the relationship between the decl spec & the expression for typeof().

Method Detail

isComplex

boolean isComplex()
Is complex number? e.g. _Complex t;

Returns:
true if it is a complex number, false otherwise

setComplex

void setComplex(boolean value)
Set the number to be complex.

Parameters:
value - true if it is a complex number, false otherwise

isImaginary

boolean isImaginary()
Is imaginary number? e.g. _Imaginr

Returns:
true if it is an imaginary number, false otherwise

setImaginary

void setImaginary(boolean value)
Set the number to be imaginary.

Parameters:
value - true if it is an imaginary number, false otherwise

isLongLong

boolean isLongLong()
Did we encounter "long long" as a modifier?

Returns:
boolean

setLongLong

void setLongLong(boolean value)
Encountered "long long" - set true or false.

Parameters:
value - boolean

setTypeofExpression

void setTypeofExpression(IASTExpression typeofExpression)
Set the typeof() expression.

Parameters:
typeofExpression - IASTExpression

getTypeofExpression

IASTExpression getTypeofExpression()
Get the typeof expression.

Returns:
IASTExpression

Eclipse CDT
Pre-release 3.0

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